refactor: refs #8619 simplify empty data check in RouteDescriptor component
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-02-27 11:53:49 +01:00
parent 955d2dd5c4
commit b614cb2046
2 changed files with 1 additions and 5 deletions

View File

@ -33,7 +33,7 @@ const getZone = async () => {
},
});
if ( data.length == 0 ) return;
if (!data.length) return;
const firstRecord = data[0];
zoneId.value = firstRecord.zoneFk;

View File

@ -133,10 +133,6 @@ describe('Route extended list', () => {
const fileName = 'download.zip';
cy.readFile(`${downloadsFolder}/${fileName}`).should('exist');
// cy.task('deleteFile', `${downloadsFolder}/${fileName}`).then((deleted) => {
// expect(deleted).to.be.true;
// });
});
it('Should mark as served the selected route', () => {