فهرست منبع

Fixes for apps and bookmarks tabs

unknown 4 سال پیش
والد
کامیت
e884c84aa8
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      client/src/components/Apps/Apps.tsx
  2. 1 1
      client/src/components/Bookmarks/Bookmarks.tsx

+ 1 - 1
client/src/components/Apps/Apps.tsx

@@ -53,7 +53,7 @@ const Apps = (props: ComponentProps): JSX.Element => {
     if (apps.length === 0) {
     if (apps.length === 0) {
       getApps();
       getApps();
     }
     }
-  }, [getApps, apps]);
+  }, [getApps]);
 
 
   const toggleModal = (): void => {
   const toggleModal = (): void => {
     setModalIsOpen(!modalIsOpen);
     setModalIsOpen(!modalIsOpen);

+ 1 - 1
client/src/components/Bookmarks/Bookmarks.tsx

@@ -61,7 +61,7 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
     if (categories.length === 0) {
     if (categories.length === 0) {
       getCategories();
       getCategories();
     }
     }
-  }, [getCategories, categories])
+  }, [getCategories])
 
 
   const toggleModal = (): void => {
   const toggleModal = (): void => {
     setModalIsOpen(!modalIsOpen);
     setModalIsOpen(!modalIsOpen);