Skip to content

Commit 6d71ca8

Browse files
committed
null-coalescing operator removed
1 parent 92639d8 commit 6d71ca8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/SPTermStorePickerService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export default class SPTermStorePickerService {
297297
return null;
298298
}
299299
}
300-
else{
300+
else {
301301
return null;
302302
}
303303
} catch (error) {
@@ -424,10 +424,10 @@ export default class SPTermStorePickerService {
424424
resolve(null);
425425
return;
426426
}
427-
427+
let loc = LocalesHelper.getLocaleId(this.context.pageContext.cultureInfo.currentUICultureName);
428428
let data = {
429429
start: searchText,
430-
lcid: LocalesHelper.getLocaleId(this.context.pageContext.cultureInfo.currentUICultureName) ?? this.context.pageContext.web.language,
430+
lcid: loc !== 0 ? loc : this.context.pageContext.web.language,
431431
sspList: this.cleanGuid(termStore[0].Id),
432432
termSetList: TermSetId,
433433
anchorId: this.props.anchorId ? this.props.anchorId : EmptyGuid,

0 commit comments

Comments
 (0)