From fab1cfa3b225e8d5ff721d5db49f5c2c210420da Mon Sep 17 00:00:00 2001 From: iVy Deliz Date: Mon, 10 Feb 2025 14:21:04 -0700 Subject: [PATCH] fix lint? --- src/components/timeline/TimelineContextMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/timeline/TimelineContextMenu.svelte b/src/components/timeline/TimelineContextMenu.svelte index e39ac0c867..b9c122832b 100644 --- a/src/components/timeline/TimelineContextMenu.svelte +++ b/src/components/timeline/TimelineContextMenu.svelte @@ -274,7 +274,7 @@ function pasteActivityDirectivesAtTime(time: Date | false | null) { if (plan !== null && featurePermissions.activityDirective.canCreate(user, plan) && time instanceof Date) { getActivityDirectivesToPaste(plan, time.getTime()).then(directives => { - if (directives !== undefined) { + if (plan != null && directives !== undefined) { effects.cloneActivityDirectives(directives, plan, user); } });