Sfoglia il codice sorgente

update forbidden atom always

Yuki Takei 7 mesi fa
parent
commit
d62a64eae3
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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) {