diff --git a/app/reducers/fileDialog.js b/app/reducers/fileDialog.js index 85a212d..c06cb66 100644 --- a/app/reducers/fileDialog.js +++ b/app/reducers/fileDialog.js @@ -102,7 +102,7 @@ export default function fileDialog(state: fileDialogStateType = initialState, ac isError: false }); case ADD_RESOURCE: { - var uuid = Uuid.uuidv4(); + const uuid = Uuid.uuidv4(); state.fileData.resources.push({ id: `${action.resourceType}${uuid}`, displayName: `${action.resourceType}-${uuid}`, @@ -111,10 +111,6 @@ export default function fileDialog(state: fileDialogStateType = initialState, ac type: action.resourceType }); - state.fileData.schema === '' ? - state.fileData.schema = 'http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' : - state.fileData.schema = state.fileData.schema; - return Object.assign({}, state, { selectedFilename: 'EDITED TEMPLATE', fileData: state.fileData,