length checking

This commit is contained in:
hannathkadher
2025-03-13 13:39:26 +04:00
parent 1aea072692
commit 8b3232b2f4

View File

@ -224,7 +224,7 @@ export class SpaceModelService {
);
}
if (dto.subspaceModels) {
if (dto.subspaceModels?.length > 0) {
modifiedSubspaces =
await this.subSpaceModelService.modifySubspaceModels(
dto.subspaceModels,
@ -235,7 +235,7 @@ export class SpaceModelService {
);
}
if (dto.tags) {
if (dto.tags?.length) {
modifiedProductAllocations =
await this.spaceModelProductAllocationService.updateProductAllocations(
dto.tags,