Skip to content

Commit

Permalink
chore(edit): remove id
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindgrutle committed Jun 26, 2024
1 parent 095bc98 commit cc8f8e6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ function DuplicateBoard({
}) {
const { addToast } = useToast()
const handleSelect = async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { id, ...boardWithoutId } = board
delete board.id
await create(
{
...boardWithoutId,
...board,
meta: {
...boardWithoutId.meta,
title: boardWithoutId.meta.title + ' - duplikat',
...board.meta,
title: board.meta.title + ' - duplikat',
},
},
oid,
Expand Down

0 comments on commit cc8f8e6

Please sign in to comment.