From f9f84a3437ffdbe03cc47415eb202873fa551dae Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Tue, 26 Oct 2021 17:56:55 -0700 Subject: [PATCH] core: fix deleted plugin causing empty plugin list bug --- plugins/core/package-lock.json | 4 ++-- plugins/core/package.json | 2 +- plugins/core/ui/src/components/Device.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json index 0ea97699c..a4f29c516 100644 --- a/plugins/core/package-lock.json +++ b/plugins/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/core", - "version": "0.0.132", + "version": "0.0.133", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/core", - "version": "0.0.132", + "version": "0.0.133", "license": "Apache-2.0", "dependencies": { "@scrypted/sdk": "file:../../sdk", diff --git a/plugins/core/package.json b/plugins/core/package.json index e6e33ca4b..b7fe1d408 100644 --- a/plugins/core/package.json +++ b/plugins/core/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/core", - "version": "0.0.132", + "version": "0.0.133", "description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/core/ui/src/components/Device.vue b/plugins/core/ui/src/components/Device.vue index 5dc7e0e70..7b82c5fba 100644 --- a/plugins/core/ui/src/components/Device.vue +++ b/plugins/core/ui/src/components/Device.vue @@ -791,7 +791,7 @@ export default { ).filter((device) => !mixins.includes(device.id)); const allMixins = [ - ...mixins.map((id) => this.$scrypted.systemManager.getDeviceById(id)), + ...mixins.map((id) => this.$scrypted.systemManager.getDeviceById(id)).filter(device => !!device), ...availableMixins, ];