Skip to content

Commit 0394eb3

Browse files
committed
Fix strictnullcheck typing
1 parent 4ae72f7 commit 0394eb3

File tree

1 file changed

+3
-2
lines changed
  • packages/app/src/app/overmind/namespaces/editor

1 file changed

+3
-2
lines changed

packages/app/src/app/overmind/namespaces/editor/actions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,8 +645,9 @@ export const showEnvironmentVariablesNotification: AsyncAction = async ({
645645

646646
await actions.editor.fetchEnvironmentVariables();
647647

648-
const emptyVarCount = Object.keys(sandbox.environmentVariables).filter(
649-
key => !sandbox.environmentVariables[key]
648+
const environmentVariables = sandbox.environmentVariables!;
649+
const emptyVarCount = Object.keys(environmentVariables).filter(
650+
key => !environmentVariables[key]
650651
).length;
651652
if (emptyVarCount > 0) {
652653
effects.notificationToast.add({

0 commit comments

Comments
 (0)