Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Ensure better backwards compatibility
Browse files Browse the repository at this point in the history
Old format requires null
  • Loading branch information
minnakt committed Jan 18, 2024
1 parent dcecbc8 commit 971efd0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pages/projectSettings/tabs/PluginsTab/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export const formToGql = ((
.map(({ displayText, field }) => ({ field, displayText }))
.filter((str) => !!str),
},
externalLinks: externalLinks.map(
({ displayName, requesters, urlTemplate }) => ({
requesters,
displayName,
urlTemplate,
}),
),
externalLinks:
externalLinks.length > 0
? externalLinks.map(({ displayName, requesters, urlTemplate }) => ({
requesters,
displayName,
urlTemplate,
}))
: null,
};

return { projectRef };
}) satisfies FormToGqlFunction<Tab>;

Expand Down

0 comments on commit 971efd0

Please sign in to comment.