From 290136ff99d9fcd8a3d4a189f61d25277b5cb3bd Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 28 Dec 2020 20:31:34 -0700 Subject: [PATCH] Fix minor lint concerns Closes https://github.com/turt2live/matrix-dimension/pull/369 --- web/app/admin/sticker-packs/sticker-packs.component.html | 6 +++--- web/app/admin/sticker-packs/sticker-packs.component.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/web/app/admin/sticker-packs/sticker-packs.component.html b/web/app/admin/sticker-packs/sticker-packs.component.html index bd1cc19..4813629 100644 --- a/web/app/admin/sticker-packs/sticker-packs.component.html +++ b/web/app/admin/sticker-packs/sticker-packs.component.html @@ -52,9 +52,9 @@ - - - + + + diff --git a/web/app/admin/sticker-packs/sticker-packs.component.ts b/web/app/admin/sticker-packs/sticker-packs.component.ts index 984b7a1..57f7bfb 100644 --- a/web/app/admin/sticker-packs/sticker-packs.component.ts +++ b/web/app/admin/sticker-packs/sticker-packs.component.ts @@ -72,11 +72,12 @@ export class AdminStickerPacksComponent implements OnInit { public removePack(pack: FE_StickerPack) { this.isUpdating = true; this.adminStickers.removePack(pack.id).then(() => { - for (let i = 0; i < this.packs.length; ++i) + for (let i = 0; i < this.packs.length; ++i) { if (this.packs[i].id === pack.id) { this.packs.splice(i, 1); break; } + } this.isUpdating = false; this.toaster.pop("success", "Sticker pack removed"); }).catch(err => {