Skip to content

Commit

Permalink
fix: correct key for delete
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwashbrook committed Jan 15, 2025
1 parent 0b3cdc6 commit 390956e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async function removeLinkIfMissing({
console.log(
`Removing invalid link in entry "${entry.sys.id}" field "${fieldKey}" value "${fieldValue.sys.id}}".`
);
delete entry.fields[fieldValue.sys?.id];
delete entry.fields[fieldKey];
await client.entry.update(
{ entryId: entry.sys.id },
{
Expand Down

0 comments on commit 390956e

Please sign in to comment.