Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Rosci authored and Andrea Rosci committed Jun 19, 2024
1 parent 2ddf40c commit 0a622e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/AutoUI/Filters/PersistentFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export const listFilterQuery = (filters: JSONSchema[]) => {
filter.title === FULL_TEXT_SLUG
? [parseFilterDescription(filter)].filter(
(f): f is FilterDescription => !!f,
)
)
: filter.anyOf
?.filter((f): f is JSONSchema => isJSONSchema(f))
.map(
(f) =>
({
...parseFilterDescription(f),
operatorSlug: f.title,
}) as FilterDescription & { operatorSlug?: string },
} as FilterDescription & { operatorSlug?: string }),
)
.filter((f) => !!f);

Expand Down
4 changes: 2 additions & 2 deletions src/DataTypes/enum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const createFilter: CreateFilter<OperatorSlug> = (
? value
: {
const: value,
},
},
},
required: [field],
};
Expand All @@ -61,7 +61,7 @@ export const createFilter: CreateFilter<OperatorSlug> = (
not: {
const: value,
},
},
},
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/FilterDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const FilterDescription = ({
operator: 'contains',
value: transformToReadableValue(parsedFilterDescription),
},
]
]
: undefined;
}

Expand Down
2 changes: 1 addition & 1 deletion src/oData/converter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const filterTests: FilterTest[] = [
},
},
{
testCase: 'should convert enum "is_not" "not null" filter to pine $filter', //is not default
testCase: 'should convert enum "is_not" "not null" filter to pine $filter', // is not default
filters: [
{
$id: 'HEVF5Y2fWZd84xWq',
Expand Down

0 comments on commit 0a622e5

Please sign in to comment.