diff --git a/src/Common/EntityValue.tsx b/src/Common/EntityValue.tsx index edea0fa35..788e08f85 100644 --- a/src/Common/EntityValue.tsx +++ b/src/Common/EntityValue.tsx @@ -32,7 +32,7 @@ export const EntityValue: FunctionComponent = ({ = ({ disabled={isEntityValueDisable} type={entityValueType} placeholder={entityValuePlaceholder} - value={typeof entityValue === "string" && entityValue} + value={typeof entityValue === "string" ? entityValue : ""} onChange={onEntityValueChange} /> ); diff --git a/src/hooks/useConfig.ts b/src/hooks/useConfig.ts index 27cce3c2d..fc29e39dd 100644 --- a/src/hooks/useConfig.ts +++ b/src/hooks/useConfig.ts @@ -4,8 +4,8 @@ import { ConfigContext, initializeConfiguration } from "../ConfigContext"; // This hook initializes global configuration from a config.json file that is injected at deploy time // This allows the same main Data Explorer build to be exactly the same in all clouds/platforms, // but override some of the configuration as nesssary -export function useConfig(): Readonly { - const [state, setState] = useState(); +export function useConfig(): Readonly { + const [state, setState] = useState(); useEffect(() => { initializeConfiguration().then((response) => setState(response)); diff --git a/tsconfig.strict.json b/tsconfig.strict.json index f5e42432e..3494c97a1 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -8,6 +8,7 @@ "noUnusedParameters": true }, "files": [ + "src/Common/EntityValue.tsx", "./src/AuthType.ts", "./src/Bindings/ReactBindingHandler.ts", "./src/Common/ArrayHashMap.ts", @@ -114,6 +115,7 @@ "./src/Utils/StyleUtils.ts", "./src/Utils/WindowUtils.test.ts", "./src/Utils/WindowUtils.ts", + "./src/hooks/useConfig.ts", "./src/hooks/useDirectories.tsx", "./src/hooks/useFullScreenURLs.tsx", "./src/hooks/useGraphPhoto.tsx", @@ -144,4 +146,4 @@ "src/Terminal/**/*", "src/Utils/arm/**/*" ] -} +} \ No newline at end of file