Skip to content

Commit

Permalink
#36 - removed parameter state re-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Mrzygłód committed Oct 26, 2017
1 parent a5caa4e commit 16e36b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/reducers/fileDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand All @@ -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,
Expand Down

0 comments on commit 16e36b4

Please sign in to comment.