diff --git a/apps/studio/src/components/ResourceSelector/ResourceSelector.tsx b/apps/studio/src/components/ResourceSelector/ResourceSelector.tsx index 630347093..324eea2d4 100644 --- a/apps/studio/src/components/ResourceSelector/ResourceSelector.tsx +++ b/apps/studio/src/components/ResourceSelector/ResourceSelector.tsx @@ -18,7 +18,7 @@ interface ResourceSelectorProps { onlyShowFolders?: boolean } -const generatePermalinkPrefix = (parents: PendingMoveResource[]) => { +const generatePermalink = (parents: PendingMoveResource[]) => { return parents.map((parent) => parent.permalink).join("/") } @@ -208,12 +208,12 @@ const SuspensableResourceSelector = ({ - You selected /{moveDest.permalink} + You selected {generatePermalink(resourceStack)} {existingResource && ( The URL for {existingResource.title} will change to{" "} - {`${generatePermalinkPrefix(resourceStack)}/${existingResource.permalink}`} + {`${generatePermalink(resourceStack)}/${existingResource.permalink}`} )}