From 47dc6182b463f98f88a18763c2e9dbd0629eb8b2 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 15 Apr 2019 10:59:31 +0200 Subject: [PATCH] fix autocomplere --- src/app/ui/auto-complete-popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ui/auto-complete-popup.js b/src/app/ui/auto-complete-popup.js index a09194f56e..f34ecac5be 100644 --- a/src/app/ui/auto-complete-popup.js +++ b/src/app/ui/auto-complete-popup.js @@ -201,11 +201,11 @@ class AutoCompletePopup { extendAutocompletion () { // TODO: this is not using the appManager interface. Terminal should be put as module this.opts.appStore.event.on('activate', (id) => { - const keyValue = {} const profile = this.opts.appStore.getOne(id).profile if (!profile.methods) return profile.methods.forEach((method) => { const key = `remix.call({name: '${id}', key:'${method}', payload: []}).then((result) => { console.log(result) }).catch((error) => { console.log(error) })` + const keyValue = {} keyValue[key] = `call ${id} - ${method}` if (this.extraCommands.includes(keyValue)) return this.extraCommands.push(keyValue)