File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function smartuiSnapshot(name, options = {}) {
3232
options
3333
}, testType).then(resp => {
3434
if (resp.status >= 200 && resp.status < 300) {
35-
if (resp.body.data?.warnings?.length) {
35+
if (resp.body.data.warnings.length) {
3636
resp.body.data.warnings.map(e => cy.task('log', log('warn', e)));
3737
}
3838
cylog('smartuiSnapshot', `Snapshot captured: ${name}`);

0 commit comments

Comments
 (0)