Browse Source

update forbidden atom always

Yuki Takei 7 months ago
parent
commit
d62a64eae3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/app/src/states/page/use-fetch-current-page.ts

+ 1 - 0
apps/app/src/states/page/use-fetch-current-page.ts

@@ -218,6 +218,7 @@ export const useFetchCurrentPage = (): {
           set(currentPageDataAtom, newData);
           set(currentPageDataAtom, newData);
           set(currentPageIdAtom, newData._id);
           set(currentPageIdAtom, newData._id);
           set(pageNotFoundAtom, false);
           set(pageNotFoundAtom, false);
+          set(isForbiddenAtom, false);
 
 
           return newData;
           return newData;
         } catch (err) {
         } catch (err) {