Commit 41b57710 authored by Mattias Lundmark's avatar Mattias Lundmark
Browse files

DEICH-4661 Tjenestekatalog: Fixed delete of single block in a section

parent 70a4971f
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
} }
export function handleDeleteBlock(event) { export function handleDeleteBlock(event) {
const { indexOfItemToDelete } = event const { indexOfItemToDelete } = event.detail
const newBlocks = blocks const newBlocks = blocks
.filter((b, i) => i !== indexOfItemToDelete) .filter((b, i) => i !== indexOfItemToDelete)
.map((block, i) => Object.assign(block, { order: i })) .map((block, i) => Object.assign(block, { order: i }))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment