core: fix deleted plugin causing empty plugin list bug

This commit is contained in:
Koushik Dutta
2021-10-26 17:56:55 -07:00
parent 910768a481
commit f9f84a3437
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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,
];