Fix: fill create guilds form and submit data structure
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user