Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dtiwarATS committed Apr 25, 2023
1 parent 6a51d2e commit ca28422
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/src/apps/delivery/layouts/deck/DeckLayoutView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ const DeckLayoutView: React.FC<LayoutProps> = ({ pageTitle, pageContent, preview
const getStatePrefix = (path: string, activityId: string | number) => {
const parts = path.split('.');
const partId = parts[0];
const ownerActivityId = currentActivityTree?.filter((activity: any) =>
activity?.authoring?.parts?.filter(
(part: { id: string; owner: string | number }) =>
part?.id === partId && part?.owner == activityId,
),
const ownerActivityId = currentActivityTree?.filter(
(activity: any) =>
activity?.authoring?.parts?.filter(
(part: { id: string; owner: string | number }) => part?.id === partId,
).length,
);
if (ownerActivityId?.length) {
return `${ownerActivityId[0].id}|stage`;
Expand Down

0 comments on commit ca28422

Please sign in to comment.