From e8f4a5448d4fef05083023d9ae59ead554c13e22 Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Thu, 28 Jan 2021 07:57:00 +0200 Subject: [PATCH] cleanup CommandRegistry Signed-off-by: Jari Kolehmainen --- src/extensions/registries/command-registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/registries/command-registry.ts b/src/extensions/registries/command-registry.ts index 2637cf49eb..0b1fc0252c 100644 --- a/src/extensions/registries/command-registry.ts +++ b/src/extensions/registries/command-registry.ts @@ -22,7 +22,7 @@ export interface CommandRegistration { export class CommandRegistry extends BaseRegistry { @action add(items: CommandRegistration | CommandRegistration[], extension?: LensExtension) { - const itemArray = [items].flat() as CommandRegistration[]; + const itemArray = [items].flat(); const newIds = itemArray.map((item) => item.id); const currentIds = this.getItems().map((item) => item.id);