From fb749820551528d12fae3c6357845b7efa01ab0e Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 14 Apr 2020 10:25:57 +0200 Subject: [PATCH] changes name of backend store method --- packages/builder/src/builderStore/store/backend.js | 2 +- packages/builder/src/builderStore/store/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index cb4b054449..2891977119 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -107,7 +107,7 @@ export const saveBackend = async state => { } } -export const newRecord = (store, useRoot) => () => { +export const newModel = (store, useRoot) => () => { store.update(state => { state.currentNodeIsNew = true const shadowHierarchy = createShadowHierarchy(state.hierarchy) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index 4d7c9929dd..cd205efa78 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -52,8 +52,8 @@ export const getStore = () => { store.setPackage = setPackage(store, initial) - store.newChildModel = backendStoreActions.newRecord(store, false) - store.newRootModel = backendStoreActions.newRecord(store, true) + store.newChildModel = backendStoreActions.newModel(store, false) + store.newRootModel = backendStoreActions.newModel(store, true) store.selectExistingNode = backendStoreActions.selectExistingNode(store) store.newChildIndex = backendStoreActions.newIndex(store, false) store.newRootIndex = backendStoreActions.newIndex(store, true)