Language: TypeScript
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
export const loadEnableCustomFilters = (store: Store<AppState, AnyAction>): void => {
  const { settings, enableCustomFilters } = store.getState();
  store.dispatch({
    type: ActionType.UPDATE_ENABLE_CUSTOM_FILTERS,
    value: enableCustomFilters ?? settings.enable_custom_filters ?? enableCustomFilters,
  });
};