Skip to content

Commit

Permalink
fix: default value in filter form (#9678)
Browse files Browse the repository at this point in the history
  • Loading branch information
keita-determined authored Jul 18, 2024
1 parent 4bbde85 commit 3baece2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ describe('FilterFormStore', () => {
filterFormStore.addChild(ROOT_ID, FormKind.Field);

let field = getField(filterFormStore);
expect(field).toMatchObject({ operator: Operator.Contains });
expect(field).toMatchObject({ operator: Operator.Eq });
filterFormStore.setFieldOperator(field.id, Operator.GreaterEq);
field = getField(filterFormStore);
expect(field).toMatchObject({ operator: Operator.GreaterEq });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const getInitGroup = (): FormGroup => ({
});

export const getInitField = (): FormField => ({
columnName: '',
columnName: 'id',
id: uuidv4(),
kind: FormKind.Field,
location: V1LocationType.EXPERIMENT,
operator: AvailableOperators[V1ColumnType.TEXT][0],
type: V1ColumnType.TEXT,
operator: AvailableOperators[V1ColumnType.NUMBER][0],
type: V1ColumnType.NUMBER,
value: null,
});

Expand Down

0 comments on commit 3baece2

Please sign in to comment.