fix: check if services exists
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-06-21 12:44:19 +02:00
parent 363c5f349a
commit ec852b898c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module.exports = Self => {
salesIds.push(null);
const servicesIds = [];
if (services.length) {
if (services && services.length) {
for (let service of services)
servicesIds.push(service.id);
} else