Skip to content

Commit 0f2d92f

Browse files
raga-adbe-ghRaghu A
andauthored
MWPW-187566 Loc - Fix english copy error check (#177)
When there are no errors during English copy, `this._urlErrors` is not initialized, causing the `this._urlErrors.length` check to fail. Fix #MWPW-187566 Co-authored-by: Raghu A <raga@raghus-mbp-3.corp.adobe.com>
1 parent 5540739 commit 0f2d92f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nx/blocks/loc/views/translate/translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class NxLocTranslate extends LitElement {
241241
});
242242

243243
// Do not continue if any errors
244-
if (this._urlErrors.length) return;
244+
if (this._urlErrors?.length) return;
245245

246246
const { org, site, title, options } = this.project;
247247

0 commit comments

Comments
 (0)