1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

changes name of backend store method

This commit is contained in:
kevmodrome 2020-04-14 10:25:57 +02:00
parent bf639da46c
commit 427a63d2bd
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 => {
state.currentNodeIsNew = true
const shadowHierarchy = createShadowHierarchy(state.hierarchy)

View file

@ -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)