changes name of backend store method

This commit is contained in:
kevmodrome 2020-04-14 10:25:57 +02:00
parent c0c7cd19e1
commit fb74982055
2 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ export const saveBackend = async state => {
} }
} }
export const newRecord = (store, useRoot) => () => { export const newModel = (store, useRoot) => () => {
store.update(state => { store.update(state => {
state.currentNodeIsNew = true state.currentNodeIsNew = true
const shadowHierarchy = createShadowHierarchy(state.hierarchy) const shadowHierarchy = createShadowHierarchy(state.hierarchy)

View File

@ -52,8 +52,8 @@ export const getStore = () => {
store.setPackage = setPackage(store, initial) store.setPackage = setPackage(store, initial)
store.newChildModel = backendStoreActions.newRecord(store, false) store.newChildModel = backendStoreActions.newModel(store, false)
store.newRootModel = backendStoreActions.newRecord(store, true) store.newRootModel = backendStoreActions.newModel(store, true)
store.selectExistingNode = backendStoreActions.selectExistingNode(store) store.selectExistingNode = backendStoreActions.selectExistingNode(store)
store.newChildIndex = backendStoreActions.newIndex(store, false) store.newChildIndex = backendStoreActions.newIndex(store, false)
store.newRootIndex = backendStoreActions.newIndex(store, true) store.newRootIndex = backendStoreActions.newIndex(store, true)