Skip to content

Commit

Permalink
Don't allow invalid usage of domainFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed May 22, 2023
1 parent 295fb31 commit 19666c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import { getTableOverwrite, modelViews } from './schemaOverrides';
import type { Relationship } from './specifyField';
import {
type FieldDefinition,
type RelationshipDefinition,
LiteralField,
type RelationshipDefinition,
} from './specifyField';

type FieldAlias = {
Expand Down Expand Up @@ -63,7 +63,6 @@ type CollectionConstructor<SCHEMA extends AnySchema> = new (
readonly filters?: Partial<
{
readonly orderby: string;
readonly domainfilter: boolean;
} & SCHEMA['fields'] &
CommonFields &
// This is required to allow for filters like leftSide__isnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function PickListEditor({
(table === undefined
? undefined
: new table.LazyCollection({
filters: { domainfilter: true },
domainfilter: true,
})) as Collection<AnySchema>,
[table]
);
Expand Down

0 comments on commit 19666c9

Please sign in to comment.