Added default state to persistance

This commit is contained in:
robertpin 2021-08-24 09:51:24 +03:00 committed by Horatiu Muresan
parent e2f760c7f1
commit 605ce9db62
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ filterSubtree.audioOutputDeviceId = false;
filterSubtree.cameraDeviceId = false;
filterSubtree.micDeviceId = false;
PersistenceRegistry.register(STORE_NAME, filterSubtree);
PersistenceRegistry.register(STORE_NAME, filterSubtree, DEFAULT_STATE);
ReducerRegistry.register(STORE_NAME, (state = DEFAULT_STATE, action) => {
switch (action.type) {