Reworked OtherSettings to work with global config state. Fixed bug with certain settings not being synchronized

This commit is contained in:
unknown
2021-06-13 23:21:35 +02:00
parent f137498e7e
commit 5e7cb72b82
11 changed files with 124 additions and 91 deletions

View File

@@ -5,7 +5,7 @@ import { store } from '../store/store';
* @param key Config pair key to search
* @param _default Value to return if key is not found
*/
export const searchConfig = (key: string, _default: any)=> {
export const searchConfig = (key: string, _default: any) => {
const state = store.getState();
const pair = state.config.config.find(p => p.key === key);