mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-11 07:38:49 +00:00
length checking
This commit is contained in:
@ -224,7 +224,7 @@ export class SpaceModelService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dto.subspaceModels) {
|
if (dto.subspaceModels?.length > 0) {
|
||||||
modifiedSubspaces =
|
modifiedSubspaces =
|
||||||
await this.subSpaceModelService.modifySubspaceModels(
|
await this.subSpaceModelService.modifySubspaceModels(
|
||||||
dto.subspaceModels,
|
dto.subspaceModels,
|
||||||
@ -235,7 +235,7 @@ export class SpaceModelService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dto.tags) {
|
if (dto.tags?.length) {
|
||||||
modifiedProductAllocations =
|
modifiedProductAllocations =
|
||||||
await this.spaceModelProductAllocationService.updateProductAllocations(
|
await this.spaceModelProductAllocationService.updateProductAllocations(
|
||||||
dto.tags,
|
dto.tags,
|
||||||
|
Reference in New Issue
Block a user