no need to do anything if delete dto is empty

This commit is contained in:
hannathkadher
2025-03-05 23:57:38 +04:00
parent 547e37dadb
commit 823cb6cf7a

View File

@ -137,7 +137,7 @@ export class SubSpaceModelService {
) {
try {
if (!deleteDtos || deleteDtos.length === 0) {
throw new Error('No subspaces provided for deletion.');
return;
}
const deleteResults = [];