Răsfoiți Sursa

remove mutateSearching

kosei-n 2 ani în urmă
părinte
comite
4c9236358a
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      apps/app/src/components/PageHeader/page-header-utils.ts

+ 0 - 2
apps/app/src/components/PageHeader/page-header-utils.ts

@@ -5,7 +5,6 @@ import { apiv3Put } from '~/client/util/apiv3-client';
 import { toastSuccess, toastError } from '~/client/util/toastr';
 import { useSWRMUTxCurrentPage } from '~/stores/page';
 import { mutatePageTree, mutatePageList } from '~/stores/page-listing';
-import { mutateSearching } from '~/stores/search';
 
 export const usePagePathRenameHandler = (
     currentPage: IPagePopulatedToShowRevision, onRenameFinish?: () => void, onRenameFailure?: () => void,
@@ -18,7 +17,6 @@ export const usePagePathRenameHandler = (
 
   const onRenamed = (fromPath: string | undefined, toPath: string) => {
     mutatePageTree();
-    mutateSearching();
     mutatePageList();
 
     if (currentPagePath === fromPath || currentPagePath === toPath) {