فهرست منبع

[assist] Prevent automatic opening of unknown tables in the right assist

This takes care of an issue where the right assist is causing autocomplete API calls for tables that don't exist.
Johan Åhlén 3 سال پیش
والد
کامیت
d0d384550b
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistEditorContextPanel.js

+ 4 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistEditorContextPanel.js

@@ -291,7 +291,10 @@ class AssistEditorContextPanel {
       }
       window.clearTimeout(loadEntriesTimeout);
       if (this.activeTables().length === 1) {
-        this.activeTables()[0].open(true);
+        const singleTable = this.activeTables()[0];
+        if (!singleTable.hasErrors()) {
+          singleTable.open(true);
+        }
       } else {
         loadEntriesTimeout = window.setTimeout(() => {
           this.activeTables().every(table => {