diff --git a/frontend/app/components/Dashboard/components/DashboardEditModal/DashboardEditModal.tsx b/frontend/app/components/Dashboard/components/DashboardEditModal/DashboardEditModal.tsx index 9590a2ed4..c08ff12fb 100644 --- a/frontend/app/components/Dashboard/components/DashboardEditModal/DashboardEditModal.tsx +++ b/frontend/app/components/Dashboard/components/DashboardEditModal/DashboardEditModal.tsx @@ -27,9 +27,6 @@ function DashboardEditModal(props: Props) { }, []) const write = ({ target: { value, name } }) => dashboard.update({ [ name ]: value }) - const writeOption = (e, { checked, name }) => { - dashboard.update({ [name]: checked }); - } return useObserver(() => ( @@ -80,7 +77,7 @@ function DashboardEditModal(props: Props) { className="font-medium mr-3" type="checkbox" checked={ dashboard.isPublic } - onClick={ writeOption } + onClick={ () => dashboard.update({ 'isPublic': !dashboard.isPublic }) } />
dashboard.update({ 'isPublic': !dashboard.isPublic }) }> diff --git a/frontend/app/components/shared/SavedSearch/components/SavedSearchModal/SavedSearchModal.tsx b/frontend/app/components/shared/SavedSearch/components/SavedSearchModal/SavedSearchModal.tsx index 3ee47d379..a90193dc8 100644 --- a/frontend/app/components/shared/SavedSearch/components/SavedSearchModal/SavedSearchModal.tsx +++ b/frontend/app/components/shared/SavedSearch/components/SavedSearchModal/SavedSearchModal.tsx @@ -81,7 +81,7 @@ function SavedSearchModal(props: Props) {
)} {shownItems.map(item => ( -
onClick(item, e)}> +
onClick(item, e)}>
{item.name}