From 9f691ddd5a4e8cc350c85c52879be569f185905e Mon Sep 17 00:00:00 2001 From: dzonidoo Date: Thu, 12 Sep 2024 16:50:10 +0200 Subject: [PATCH] changes after review --- .../utils/get-initial-destination.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/core/interactive-article-actions-panel/utils/get-initial-destination.ts b/scripts/core/interactive-article-actions-panel/utils/get-initial-destination.ts index 74e5a28532..3df2975abd 100644 --- a/scripts/core/interactive-article-actions-panel/utils/get-initial-destination.ts +++ b/scripts/core/interactive-article-actions-panel/utils/get-initial-destination.ts @@ -87,11 +87,10 @@ export function getInitialDestination( export function getCurrentDeskDestination(id?: string): ISendToDestination { const destinationDeskId: string = sdApi.desks.getCurrentDeskId(); - const itemDeskId: string = sdApi.desks.getAllDesks().get(id)._id; return { type: 'desk', - desk: itemDeskId ?? destinationDeskId, + desk: id ?? destinationDeskId, stage: null, }; }