chore(): sync with main:

This commit is contained in:
Liam DeBeasi
2022-10-11 11:38:27 -04:00
464 changed files with 2022 additions and 2820 deletions

View File

@ -458,9 +458,9 @@ export class Segment implements ComponentInterface {
case 'last':
return buttons[buttons.length - 1];
case 'next':
return buttons[currIndex + 1] || buttons[0];
return buttons[currIndex + 1] ?? buttons[0];
case 'previous':
return buttons[currIndex - 1] || buttons[buttons.length - 1];
return buttons[currIndex - 1] ?? buttons[buttons.length - 1];
default:
return null;
}