gui strict null checks - revert useactive selector logic
This commit is contained in:
parent
1bfc0a47e9
commit
e899691151
2 changed files with 3 additions and 4 deletions
|
|
@ -26,6 +26,5 @@ export const selectContextProviderDescriptions = createSelector(
|
|||
|
||||
export const selectUseActiveFile = createSelector(
|
||||
[(store: RootState) => store.state.config.experimental?.defaultContext],
|
||||
(defaultContext) =>
|
||||
defaultContext?.find((provider) => provider.name === "activeFile") ?? false,
|
||||
(defaultContext) => defaultContext?.includes("activeFile" as any),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@
|
|||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
"noEmitOnError": false,
|
||||
"types": ["vitest/globals"],
|
||||
"types": ["vitest/globals"]
|
||||
// Disabled for now since it's causing too many errors
|
||||
"strictNullChecks": true
|
||||
// "strictNullChecks": true
|
||||
},
|
||||
"include": ["src", "../src/util/messenger.ts"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue