mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
refactor: replace at function
This commit is contained in:
1 parent
b0d368eecb
commit
d089e82afa
1 file changed
+2
-1
@@ -201,7 +201,8 @@ export class WhatsNewService {
|
||||
* Returns modals with latest changes
|
||||
*/
|
||||
getLatestChanges(): ModalWindow[] {
|
||||
const lastVersion = Object.keys(this.modals).at(-1);
|
||||
const modalsLength = Object.keys(this.modals).length;
|
||||
const lastVersion = Object.keys(this.modals)[modalsLength - 1];
|
||||
return this.modals[lastVersion];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user