From 0820132fac659087973c29ee541eecb1de79a824 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 23 May 2023 09:09:13 -0400 Subject: [PATCH] Revert "chore: Fix more lint" This reverts commit 83244ceefc165563f2093ff2c3b0a64f9cec696d. --- .../hotbar/storage/main/welcome-page-migration.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/core/src/features/hotbar/storage/main/welcome-page-migration.test.ts b/packages/core/src/features/hotbar/storage/main/welcome-page-migration.test.ts index 31cb3a4092..91541f43e3 100644 --- a/packages/core/src/features/hotbar/storage/main/welcome-page-migration.test.ts +++ b/packages/core/src/features/hotbar/storage/main/welcome-page-migration.test.ts @@ -9,15 +9,14 @@ import type { HotbarData } from "../common/hotbar"; import type { HotbarItem } from "../common/types"; import v640HotbarStoreMigrationInjectable from "./welcome-page-migration.injectable"; import { defaultHotbarCells } from "../common/types"; -import { array } from "@k8slens/utilities"; -function fillWithEmpties(items: (HotbarItem | null)[]) { - const emptyHotBarItems = array.filled(defaultHotbarCells, null); +function fillWithEmpties(items: HotbarItem[]) { + const emptyHotBarItems = new Array(defaultHotbarCells).fill(null); return [...items, ...emptyHotBarItems.slice(items.length)]; } -function setFirstHotbarItems(store: MigrationStore, items: (HotbarItem | null)[]) { +function setFirstHotbarItems(store: MigrationStore, items: HotbarItem[]) { const oldHotbars = store.get("hotbars") as HotbarData[]; // empty hotbar items are nulls const itemsWithEmptyCells = fillWithEmpties(items);