Browse Source

update forbidden atom always

Yuki Takei 8 tháng trước cách đây
mục cha
commit
d62a64eae3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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) {