@tsed/react-formio 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.modern.js
CHANGED
|
@@ -801,6 +801,9 @@ function useCustomTable(props) {
|
|
|
801
801
|
const [filterId, setFilterId] = React.useState(controlledFilterId);
|
|
802
802
|
// DND
|
|
803
803
|
const [records, setRecords] = useState(data);
|
|
804
|
+
useEffect(() => {
|
|
805
|
+
setRecords(data);
|
|
806
|
+
}, [data]);
|
|
804
807
|
const _onDrag = (dragIndex, hoverIndex) => {
|
|
805
808
|
const newRecords = swapElements([...records], dragIndex, hoverIndex);
|
|
806
809
|
setRecords(newRecords);
|