Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
mournfulCoroner committed Dec 26, 2024
1 parent 2478af4 commit 6220e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/utils/getActionPanelItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type ActionPanelItemParams = {
userSettings?: DLUserSettings;
scope?: string;
enableHiddenItems?: boolean;
allowedPasteItemsList?: string[];
allowedPasteItems?: string[];
};

export const BASE_ITEMS_TO_PASTE = [
Expand All @@ -54,12 +54,12 @@ export const getActionPanelItems = ({
userSettings,
scope,
// TODO: Remove concat
allowedPasteItemsList = BASE_ITEMS_TO_PASTE.concat(DashTabItemType.Image),
allowedPasteItems = BASE_ITEMS_TO_PASTE.concat(DashTabItemType.Image),
}: ActionPanelItemParams) => {
const {getBasicActionPanelItems} = registry.common.functions.getAll();
const items = getBasicActionPanelItems({userSettings, scope});

const enablePaste = copiedData && allowedPasteItemsList.includes(copiedData.type);
const enablePaste = copiedData && allowedPasteItems.includes(copiedData.type);

if (enablePaste) {
items.push({
Expand Down

0 comments on commit 6220e27

Please sign in to comment.