Skip to content

Commit

Permalink
feat: redirect for duplicate projects (#3954) (#3960)
Browse files Browse the repository at this point in the history
Co-authored-by: Fran McDade <[email protected]>
  • Loading branch information
frano-m and Fran McDade authored Mar 27, 2024
1 parent c07f766 commit bf2d17c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1678,4 +1678,8 @@ export const baseProjectEdits: ProjectEdit[] = [
],
entryId: "4ae8c5c9-1520-4371-9827-6935661f6c84",
},
{
duplicateOf: "9c20a245-f2c0-43ae-82c9-2232ec6b594f",
entryId: "c3354786-c17c-4e53-b4d7-c7afbed5b208",
},
];
2 changes: 1 addition & 1 deletion explorer/pages/[entityListType]/[...params].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ function processEntityOverrideProps(
if (!overrides) return;
const override = findOverride(overrides, entityId);
if (override && isOverride(override)) {
props.override = override;
props.override = { ...override };
if (override.duplicateOf) {
props.override.duplicateOf = `/${entityListType}/${override.duplicateOf}`;
}
Expand Down

0 comments on commit bf2d17c

Please sign in to comment.