Fixed api bug

This commit is contained in:
Hein 2025-10-30 14:37:53 +02:00
parent 9f04b36e7e
commit e879abb43f

View File

@ -261,8 +261,12 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
[props.url, props.authtoken, props.filter, props.options, getState, addError] [props.url, props.authtoken, props.filter, props.options, getState, addError]
); );
//Reset the loaded pages to new rules //Reset the function in the store.
useEffect(() => { useEffect(() => {
setState('useAPIQuery', useAPIQuery);
setState('askAPIRowNumber', askAPIRowNumber);
//Reset the loaded pages to new rules
loadPage(0, 'all').then(() => { loadPage(0, 'all').then(() => {
const onChange = getState('onChange'); const onChange = getState('onChange');
const getGridSelectedRows = getState('getGridSelectedRows'); const getGridSelectedRows = getState('getGridSelectedRows');
@ -271,12 +275,6 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG
onChange(buffers); onChange(buffers);
} }
}); });
}, [JSON.stringify(props.options), props.filter, props.url, props.authtoken]);
//Reset the function in the store.
useEffect(() => {
setState('useAPIQuery', useAPIQuery);
setState('askAPIRowNumber', askAPIRowNumber);
}, [props.url, props.authtoken, props.filter, JSON.stringify(props.options), mounted, setState]); }, [props.url, props.authtoken, props.filter, JSON.stringify(props.options), mounted, setState]);
return <></>; return <></>;