Skip to content

Commit

Permalink
Do not use Array.prototype.at
Browse files Browse the repository at this point in the history
ref DEV-1485
  • Loading branch information
louischan-oursky committed Jul 8, 2024
2 parents efa17f3 + eaf2b17 commit fccfa1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authui/src/authflowv2/customSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class CustomSelectController extends Controller {
renderTrigger() {
const option =
this.optionsValue.find((option) => option.value === this.value) ??
this.optionsValue.at(0);
(this.optionsValue[0] as SearchSelectOption | undefined);

if (!option) {
return;
Expand Down

0 comments on commit fccfa1d

Please sign in to comment.