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