From 0dd469eae637ea4bccbcb3f273a2bf776e3e7460 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 5 Jun 2024 23:39:55 +0530 Subject: [PATCH] feat: helper fxn to check null vals --- server/src/workflow-management/selector.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index af7227e5..77df25bf 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -407,7 +407,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => { return null; } + function notEmpty(value: T | null | undefined): value is T { + return value !== null && value !== undefined; + } + + };