Skip to content

Commit

Permalink
ezqms-974: fix space type selector in document and product spaces (#5802
Browse files Browse the repository at this point in the history
)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
  • Loading branch information
lexiv0re authored Jun 13, 2024
1 parent a409cfa commit ca892ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
rolesAssignment = getRolesAssignment()
}
$: descriptors =
spaceType?.descriptor !== undefined ? [spaceType.descriptor] : [documents.descriptor.DocumentSpaceType]
function getRolesAssignment (): RolesAssignment {
if (docSpace === undefined || spaceType?.targetClass === undefined || spaceType?.$lookup?.roles === undefined) {
Expand Down Expand Up @@ -239,7 +241,7 @@

<SpaceTypeSelector
disabled={!isNew}
descriptors={[documents.descriptor.DocumentSpaceType]}
{descriptors}
type={typeId}
focusIndex={4}
kind="regular"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
let types: SpaceType[] = []
const typesQ = createQuery()
const query = {
$: query = {
descriptor: { $in: descriptors }
}
$: typesQ.query(core.class.SpaceType, query, (result) => {
Expand Down

0 comments on commit ca892ba

Please sign in to comment.