mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
RENAME_STORAGE redux action
This commit is contained in:
@@ -439,6 +439,11 @@ function data (state = defaultDataMap(), action) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
|
case 'RENAME_STORAGE':
|
||||||
|
state = Object.assign({}, state)
|
||||||
|
state.storageMap = new Map(state.storageMap)
|
||||||
|
state.storageMap.set(action.storage.key, action.storage)
|
||||||
|
return state
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user