Ver Fonte

update forbidden atom always

Yuki Takei há 7 meses atrás
pai
commit
d62a64eae3
1 ficheiros alterados com 1 adições e 0 exclusões
  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(currentPageIdAtom, newData._id);
           set(pageNotFoundAtom, false);
+          set(isForbiddenAtom, false);
 
           return newData;
         } catch (err) {