Skip to content

Commit

Permalink
fix: fix issue #19532
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrebodin committed Mar 29, 2024
1 parent a8ca954 commit cb1290c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ const DefaultInputs = ({
const getFilterList = (filterSchema: FilterData['fieldSchema']): Operator[] => {
let type = filterSchema.type;

if (filterSchema.type === 'relation' && filterSchema?.mainField?.schema?.type) {
type = filterSchema.mainField.schema.type;
if (filterSchema.type === 'relation' && filterSchema?.mainField?.type) {
type = filterSchema.mainField.type;
}

switch (type) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/helper-plugin/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface FilterData {
options?: string[];
mainField?: {
name: string;
schema?: Attribute.Any;
type: Attribute.Any['type'];
};
};
trackedEvent?: TrackingEvent;
Expand Down

0 comments on commit cb1290c

Please sign in to comment.