Fix Error field type rich text (#8739)

fix #8445

It seems linked to commandBar search where we filter tasks/notes by body
with ilike.
This commit is contained in:
Félix Malfait
2024-11-26 10:11:41 +01:00
committed by GitHub
parent 2e75fae3ad
commit 9f2e774113

View File

@ -177,6 +177,15 @@ export const isRecordMatchingFilter = ({
value: record[filterKey],
});
}
case FieldMetadataType.RichText: {
// TODO: Implement a better rich text filter once it becomes a composite field
// See this issue for more context: https://github.com/twentyhq/twenty/issues/7613#issuecomment-2408944585
// This should be tackled in Q4'24
return isMatchingStringFilter({
stringFilter: filterValue as StringFilter,
value: record[filterKey],
});
}
case FieldMetadataType.Select:
return isMatchingSelectFilter({
selectFilter: filterValue as SelectFilter,