Fixed api bug
This commit is contained in:
		
							parent
							
								
									9f04b36e7e
								
							
						
					
					
						commit
						e879abb43f
					
				| @ -261,8 +261,12 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG | ||||
|     [props.url, props.authtoken, props.filter, props.options, getState, addError] | ||||
|   ); | ||||
| 
 | ||||
|   //Reset the loaded pages to new rules
 | ||||
|   //Reset the function in the store.
 | ||||
|   useEffect(() => { | ||||
|     setState('useAPIQuery', useAPIQuery); | ||||
|     setState('askAPIRowNumber', askAPIRowNumber); | ||||
| 
 | ||||
|     //Reset the loaded pages to new rules
 | ||||
|     loadPage(0, 'all').then(() => { | ||||
|       const onChange = getState('onChange'); | ||||
|       const getGridSelectedRows = getState('getGridSelectedRows'); | ||||
| @ -271,12 +275,6 @@ function _GlidlerAPIAdaptorForGoLangv2<T = unknown>(props: GlidlerAPIAdaptorForG | ||||
|         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]); | ||||
| 
 | ||||
|   return <></>; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user