diff --git a/src/components/util/multi-and-table/select-slides-table.jsx b/src/components/util/multi-and-table/select-slides-table.jsx index 15397d6a..a716cfcc 100644 --- a/src/components/util/multi-and-table/select-slides-table.jsx +++ b/src/components/util/multi-and-table/select-slides-table.jsx @@ -68,6 +68,12 @@ function SelectSlidesTable({ handleChange, name, slideId = "" }) { const newData = [...expired, ...active, ...future]; setSelectedData(newData); + const target = { + value: newData.map((item) => item["@id"]), + id: name, + }; + handleChange({ target }); + const order = selectedData.map((entry) => entry["@id"]); const newOrder = newData.map((entry) => entry["@id"]); @@ -92,6 +98,12 @@ function SelectSlidesTable({ handleChange, name, slideId = "" }) { setSelectedData(newData); + const target = { + value: newData.map((item) => item["@id"]), + id: name, + }; + handleChange({ target }); + const order = selectedData.map((entry) => entry["@id"]); const newOrder = newData.map((entry) => entry["@id"]);