reverted folder count changes

This commit is contained in:
rohanlahori 2024-10-22 10:46:29 +05:30
parent 21895cb2a1
commit 7f0a3b145f
2 changed files with 0 additions and 7 deletions

View file

@ -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) {

View file

@ -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>