Fix: fill create guilds form and submit data structure

This commit is contained in:
2026-02-03 10:25:51 +03:30
parent 199ffa7163
commit ec88696465
8 changed files with 188 additions and 259 deletions

View File

@@ -89,7 +89,10 @@ export const StewardShowAllocations = forwardRef(
const updateTable = () => {
fetchApiData(1);
handleUpdate();
// Do not call handleUpdate() here - parent's handleUpdate already calls
// updateTable() on both instances; calling handleUpdate would cause
// infinite recursion (handleUpdate → updateTable → handleUpdate → …).
// Callers that need the parent bars summary refreshed call handleUpdate explicitly.
};
useImperativeHandle(ref, () => ({
@@ -264,7 +267,7 @@ export const StewardShowAllocations = forwardRef(
useEffect(() => {
fetchApiData(1);
}, [dispatch, selectedDate1, selectedDate2, perPage]);
}, [selectedDate1, selectedDate2, perPage]);
const handleSubmit = async (event) => {
event.preventDefault();