From 5553170c5a07a8449222b23480d4e45bb9b762c8 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 20 Oct 2023 15:33:41 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E7=A6=BB?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=90=8E=E4=B8=BB=E7=A8=8B=E5=BA=8F=E5=A4=B1?= =?UTF-8?q?=E5=8E=BB=E5=93=8D=E5=BA=94=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/main/common/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 875be26..218fe4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rubick", - "version": "4.0.7", + "version": "4.0.8", "author": "muwoo <2424880409@qq.com>", "private": true, "scripts": { diff --git a/src/main/common/api.ts b/src/main/common/api.ts index 792f02f..d8104d4 100644 --- a/src/main/common/api.ts +++ b/src/main/common/api.ts @@ -222,7 +222,7 @@ class API extends DBInstance { } public getFeatures() { - return this.currentPlugin.features; + return this.currentPlugin?.features; } public setFeature({ data }, window) {