Skip to content

Commit

Permalink
Fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerckx committed Jun 20, 2024
1 parent 9802769 commit fc63ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dashboard/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const editLoader = atomFamily(() => {
workspace: Entry.workspace
})
)
return entry
if (!entry) return null
return {...entry, locale: entry.locale || undefined}
})
})

Expand Down

0 comments on commit fc63ede

Please sign in to comment.