Fix Views on People page (#2265)

* fetching viewId for url

* fixed option menu name input

* fix table import

* fix unnecessary rerenders

* people working

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
Charles Bochet
2023-10-27 18:20:58 +02:00
committed by GitHub
parent 35237c05f3
commit afd4b7c634
14 changed files with 202 additions and 75 deletions

View File

@ -25,7 +25,6 @@ export const HooksCompanyBoardEffect = () => {
setAvailableFilters,
setAvailableSorts,
setEntityCountInCurrentView,
setCurrentViewId,
} = useView();
const { currentViewFilters } = useViewInternalStates();
@ -106,10 +105,6 @@ export const HooksCompanyBoardEffect = () => {
useEffect(() => {
if (!loading && pipeline && pipelineProgresses && companiesData) {
const viewId = searchParams.get('view');
if (viewId) {
//setCurrentViewId(viewId);
}
setActionBarEntries();
setContextMenuEntries();
updateCompanyBoard(pipeline, pipelineProgresses, companiesData.companies);
@ -125,7 +120,6 @@ export const HooksCompanyBoardEffect = () => {
setContextMenuEntries,
searchParams,
setEntityCountInCurrentView,
setCurrentViewId,
]);
return <></>;