Skip to content

Commit e0514b4

Browse files
committed
EntityIdCreationModel.getSchemaQuery to include optional targetQueryName param
1 parent fc91638 commit e0514b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/components/src/internal/components/entities

packages/components/src/internal/components/entities/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ export class EntityIdCreationModel extends Record({
360360
};
361361
}
362362

363-
getSchemaQuery(): SchemaQuery {
364-
const entityTypeName = this.getTargetEntityTypeValue();
363+
getSchemaQuery(targetQueryName?: string): SchemaQuery {
364+
const entityTypeName = targetQueryName ?? this.getTargetEntityTypeValue();
365365
return entityTypeName ? new SchemaQuery(this.entityDataType.instanceSchemaName, entityTypeName) : undefined;
366366
}
367367

0 commit comments

Comments
 (0)