File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/components/spreadsheet-view/spreadsheet/spreadsheet-toolbar/row-counter Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ export function useFilteredRowCounterInfo({
4141 const [ isAnyFilterPresent , setIsAnyFilterPresent ] = useState ( false ) ;
4242
4343 const currentNode = useSelector ( ( state : AppState ) => state . currentTreeNode ) ;
44+ const currentRootNetworkUuid = useSelector ( ( state : AppState ) => state . currentRootNetworkUuid ) ;
45+
4446 const globalFilterSpreadsheetState = useSelector (
4547 ( state : AppState ) => state . globalFilterSpreadsheetState [ tableDefinition . uuid ]
4648 ) ;
@@ -66,6 +68,10 @@ export function useFilteredRowCounterInfo({
6668 [ gridRef , currentNode , disabled ]
6769 ) ;
6870
71+ useEffect ( ( ) => {
72+ setIsLoading ( true ) ;
73+ } , [ currentRootNetworkUuid ] ) ;
74+
6975 const onFilterChanged = useCallback ( ( event : FilterChangedEvent ) => {
7076 setIsAnyFilterPresent ( event . api . isAnyFilterPresent ( ) ) ;
7177 setIsLoading ( true ) ;
You can’t perform that action at this time.
0 commit comments