@@ -26,7 +26,7 @@ import configManager from "../../configManager/configManager.js";
2626 * @returns {Component } custom action bar as defined by react-admin
2727 */
2828function ActionBar ( ) {
29- const { total, isLoading, perPage , resource } = useListContext ( ) ;
29+ const { total, isLoading, resource } = useListContext ( ) ;
3030 const [ time , setTime ] = useState ( 0 ) ;
3131 const [ sourceInfoOpen , setSourceInfoOpen ] = useState ( false ) ;
3232
@@ -48,19 +48,13 @@ function ActionBar() {
4848 const query = configManager . getQueryWorkingCopyById ( resource ) ;
4949 const context = query . comunicaContext ;
5050 const sources = context . sources ;
51- const resultCount = total <= perPage ? total : perPage ;
5251
5352 return (
5453 < Grid container direction = "row" width = { "100%" } rowSpacing = { 1 } >
5554 < Grid item height = { "fit-content" } width = { "100%" } >
5655 < TopToolbar style = { { width : "100%" , height : "fit-content" } } >
5756 < div style = { { flex : "1" } } > </ div >
5857 < div className = "query-information" >
59- < div className = "information-box" >
60- { isLoading && < strong > Loading: </ strong > }
61- { ! isLoading && < strong > Loaded: </ strong > }
62- < span > { resultCount } results</ span >
63- </ div >
6458 < div className = "information-box" >
6559 { isLoading && < strong > Runtime: </ strong > }
6660 { ! isLoading && < strong > Finished in: </ strong > }
0 commit comments