1
0
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:
Dick Choi
2016-09-08 16:50:05 +09:00
parent f07f309393
commit 519ea1a33f

View File

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