Skip to content

Commit

Permalink
Merge branch 'release/1.0.0-beta5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Mrzygłód committed Oct 26, 2017
2 parents 22fe295 + 3233e73 commit b44507c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ARMata",
"productName": "ARMata",
"version": "v1.0.0-beta4",
"version": "v1.0.0-beta5",
"description": "ARM templates visualizer & editor",
"main": "./main.prod.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion app/parsers/templateParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class TemplateParser {

parseTemplate(): Template {
const parsedTemplate = {
schema: this.json.$schema,
schema: this.json.$schema || '',
contentVersion: this.json.contentVersion,
outputs: this.getOutputs(),
parameters: this.getParameters(),
Expand Down
8 changes: 5 additions & 3 deletions app/reducers/fileDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ export default function fileDialog(state: fileDialogStateType = initialState, ac
isError: false
});
case ADD_RESOURCE: {
const uuid = Uuid.uuidv4();
state.fileData.resources.push({
id: `${action.resourceType}${Uuid.uuidv4()}`,
displayName: action.resourceType,
name: action.resourceType,
id: `${action.resourceType}${uuid}`,
displayName: `${action.resourceType}-${uuid}`,
name: `${action.resourceType}-${uuid}`,
dependsOn: [],
type: action.resourceType
});

return Object.assign({}, state, {
selectedFilename: 'EDITED TEMPLATE',
fileData: state.fileData,
Expand Down

0 comments on commit b44507c

Please sign in to comment.