Skip to content

Commit

Permalink
fix lint?
Browse files Browse the repository at this point in the history
  • Loading branch information
ivydeliz committed Feb 10, 2025
1 parent 0563d81 commit fab1cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/timeline/TimelineContextMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
Expand Down

0 comments on commit fab1cfa

Please sign in to comment.