Removed console.logs

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 4779521c56
commit a526ec14e9

@ -57,6 +57,14 @@ export default class Helper {
return tmpTags; return tmpTags;
} }
/**
* Generates Platform data object.
* @param general: Platform general information.
* @param config: Platform configurations.
* @param properties: Platform properties.
*
* @return {{platform: *, icon}} data object and the icon image.
* */
static buildPlatform(general, config, properties) { static buildPlatform(general, config, properties) {
let platform = Object.assign({}, general, config, properties); let platform = Object.assign({}, general, config, properties);
@ -65,8 +73,6 @@ export default class Helper {
platform.tags = Helper.stringifyTags(platform.tags); platform.tags = Helper.stringifyTags(platform.tags);
console.log(platform, icon);
let tempData = { let tempData = {
"platform": platform, "platform": platform,
"icon": icon "icon": icon

@ -28,9 +28,9 @@ import Helper from './helpers/appMgtApiHelpers';
export default class PlatformMgtApi{ export default class PlatformMgtApi{
/** /**
* Create a new Platform * Create a new Platform
* @param general: The platform data object. * @param general: Platform general information.
* @param config: The platform data object. * @param config: Platform configurations.
* @param prop: The platform data object. * @param prop: Platform properties.
* */ * */
static createPlatform(general, config, prop) { static createPlatform(general, config, prop) {
const headers = AuthHandler.createAuthenticationHeaders("multipart/form-data"); const headers = AuthHandler.createAuthenticationHeaders("multipart/form-data");
@ -40,8 +40,6 @@ export default class PlatformMgtApi{
platformData.append("platform", platform.platform); platformData.append("platform", platform.platform);
platformData.append("icon", platform.icon); platformData.append("icon", platform.icon);
console.log(platformData);
return Axios.post(Constants.platformManagerEndpoints.CREATE_PLATFORM, platformData, {headers: headers}); return Axios.post(Constants.platformManagerEndpoints.CREATE_PLATFORM, platformData, {headers: headers});
} }

Loading…
Cancel
Save