mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
reverted folder count changes
This commit is contained in:
parent
21895cb2a1
commit
7f0a3b145f
2 changed files with 0 additions and 7 deletions
|
|
@ -25,7 +25,6 @@ export const Folders = function Folders({
|
|||
canDeleteFolder,
|
||||
canCreateApp,
|
||||
darkMode,
|
||||
searchedAppCount,
|
||||
}) {
|
||||
const [isLoading, setLoadingStatus] = useState(foldersLoading);
|
||||
const [showInput, setShowInput] = useState(false);
|
||||
|
|
@ -41,14 +40,10 @@ export const Folders = function Folders({
|
|||
const [activeFolder, setActiveFolder] = useState(currentFolder || {});
|
||||
const [filteredData, setFilteredData] = useState(folders);
|
||||
const [errorText, setErrorText] = useState('');
|
||||
const [activeFolderAppCount, setActiveFolderAppCount] = useState(activeFolder.count);
|
||||
const navigate = useNavigate();
|
||||
|
||||
const { t } = useTranslation();
|
||||
const { updateSidebarNAV } = useContext(BreadCrumbContext);
|
||||
useEffect(() => {
|
||||
setActiveFolderAppCount(searchedAppCount);
|
||||
}, [searchedAppCount]);
|
||||
useEffect(() => {
|
||||
setLoadingStatus(foldersLoading);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
|
@ -111,7 +106,6 @@ export const Folders = function Folders({
|
|||
updateSidebarNAV(folder?.name ?? 'All apps');
|
||||
//update the url query parameter with folder name
|
||||
updateFolderQuery(folder?.name);
|
||||
setActiveFolderAppCount(folder.count);
|
||||
}
|
||||
|
||||
function updateFolderQuery(name) {
|
||||
|
|
|
|||
|
|
@ -843,7 +843,6 @@ class HomePageComponent extends React.Component {
|
|||
canUpdateFolder={this.canUpdateFolder()}
|
||||
darkMode={this.props.darkMode}
|
||||
canCreateApp={this.canCreateApp()}
|
||||
searchedAppCount={this.state.searchedAppCount}
|
||||
/>
|
||||
<OrganizationList />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue