diff --git a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CellOptionsPopup.tsx b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CellOptionsPopup.tsx index fd2f145609..6df9271520 100644 --- a/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CellOptionsPopup.tsx +++ b/frontend/appflowy_tauri/src/appflowy_app/components/_shared/EditRow/CellOptionsPopup.tsx @@ -72,11 +72,7 @@ export const CellOptionsPopup = ({ }; const onToggleOptionClick = async (option: SelectOptionPB) => { - if ( - (data as SelectOptionCellDataPB | undefined)?.select_options?.find( - (selectedOption) => selectedOption.id === option.id - ) - ) { + if ((data as SelectOptionCellDataPB)?.select_options?.find((selectedOption) => selectedOption.id === option.id)) { await new SelectOptionCellBackendService(cellIdentifier).unselectOption([option.id]); } else { await new SelectOptionCellBackendService(cellIdentifier).selectOption([option.id]); @@ -121,7 +117,7 @@ export const CellOptionsPopup = ({
- {(data as SelectOptionCellDataPB | undefined)?.select_options?.map((option, index) => ( + {(data as SelectOptionCellDataPB)?.select_options?.map((option, index) => (
{option?.name || ''}