diff --git a/renderer/src/components/Projects/ProjectList.js b/renderer/src/components/Projects/ProjectList.js index 4c8f691e3..d25aad3af 100644 --- a/renderer/src/components/Projects/ProjectList.js +++ b/renderer/src/components/Projects/ProjectList.js @@ -30,7 +30,6 @@ export default function ProjectList() { callEditProject, }, action: { - setProjects, handleClickStarred, setCallEditProject, FetchProjects, @@ -38,6 +37,7 @@ export default function ProjectList() { } = useContext(AutographaContext); const [openPopUp, setOpenPopUp] = useState(false); const [currentProject, setCurrentProject] = useState(); + const [filteredProjects, setFilteredProjects] = useState(projects); const openExportPopUp = (project) => { setCurrentProject(project); setOpenPopUp(true); @@ -70,7 +70,7 @@ export default function ProjectList() { contentList1={projects} // contentList2={projects} filterList={filterList} - onfilerRequest1={setProjects} + onfilerRequest1={setFilteredProjects} // onfilerRequest2={setProjects} /> )} @@ -88,7 +88,7 @@ export default function ProjectList() { orderBy={orderBy} onRequestSort={handleRequestSort} /> - + {(!projects) &&
} diff --git a/renderer/src/components/Projects/SearchTags.js b/renderer/src/components/Projects/SearchTags.js index b88cd8b69..47db316c5 100644 --- a/renderer/src/components/Projects/SearchTags.js +++ b/renderer/src/components/Projects/SearchTags.js @@ -47,7 +47,7 @@ export default function SearchTags({ // onfilerRequest2(contentList2); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [query]); + }, [query, contentList1]); return (