From 4a2217e63c4d5ce60c080e66884ae720af70fbdf Mon Sep 17 00:00:00 2001 From: Joelant05 Date: Sun, 10 Jan 2021 19:13:05 +0000 Subject: [PATCH 1/3] fix 'cannot read object of undefined' error --- app/renderer/src/autoCompletions/Provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/renderer/src/autoCompletions/Provider.ts b/app/renderer/src/autoCompletions/Provider.ts index d1d704057..e9ae0af4d 100644 --- a/app/renderer/src/autoCompletions/Provider.ts +++ b/app/renderer/src/autoCompletions/Provider.ts @@ -192,7 +192,7 @@ class Provider { // console.log('[PROPOSING]', path, propose, LIB) return this.preparePropose( - propose, + propose === undefined ? { object: {}, value: [] } : propose, context === undefined ? [] : Object.keys(context.toJSON(false)) ) } From 4f5f4ddb32f2bdd506ec0c18167419f8c4f71ec6 Mon Sep 17 00:00:00 2001 From: Joelant05 Date: Sun, 10 Jan 2021 19:52:39 +0000 Subject: [PATCH 2/3] simplify fix --- app/renderer/src/autoCompletions/Provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/renderer/src/autoCompletions/Provider.ts b/app/renderer/src/autoCompletions/Provider.ts index e9ae0af4d..c4d10150f 100644 --- a/app/renderer/src/autoCompletions/Provider.ts +++ b/app/renderer/src/autoCompletions/Provider.ts @@ -192,7 +192,7 @@ class Provider { // console.log('[PROPOSING]', path, propose, LIB) return this.preparePropose( - propose === undefined ? { object: {}, value: [] } : propose, + propose ?? { object: {}, value: [] }, context === undefined ? [] : Object.keys(context.toJSON(false)) ) } From 2038d10711ea0fbce8b75eb7c866aa8880ad59e9 Mon Sep 17 00:00:00 2001 From: Joelant05 Date: Mon, 11 Jan 2021 12:16:06 +0000 Subject: [PATCH 3/3] v1.7.18 --- app/shared/app_version.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/shared/app_version.ts b/app/shared/app_version.ts index c893ecb00..6b7cd3b83 100644 --- a/app/shared/app_version.ts +++ b/app/shared/app_version.ts @@ -1,4 +1,4 @@ /** * Current bridge. app version */ -export default 'v1.7.17' +export default 'v1.7.18' diff --git a/package.json b/package.json index 0cd22d35c..236de6f2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bridge", - "version": "1.7.17", + "version": "1.7.18", "author": "solvedDev ", "description": "A powerful add-on editor", "license": "GNU",