Refactor duplication of hard coded soft delete filter logic (#10058)
This PR adds a useCheckIsSoftDeleteFilter hook instead of the undocumented in-place logic to retrieve the soft delete filter. Also took the opportunity to refactor a recent change of @prastoin with it. Split VariantFilterChip into SoftDeleteFilterChip and RecordFilterChip to separate concerns about this soft delete filtering.
This commit is contained in:
@ -45,7 +45,6 @@ describe('computeContextStoreFilters', () => {
|
||||
const contextStoreFilters: RecordFilter[] = [
|
||||
{
|
||||
id: 'name-filter',
|
||||
variant: 'default',
|
||||
fieldMetadataId: personObjectMetadataItem.fields.find(
|
||||
(field) => field.name === 'name',
|
||||
)!.id,
|
||||
|
||||
Reference in New Issue
Block a user