瀏覽代碼

fix: file-specific imports showing up for db version

Gabriel Horner 1 年之前
父節點
當前提交
9ec71e19f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/components/imports.cljs

+ 1 - 1
src/main/frontend/components/imports.cljs

@@ -378,7 +378,7 @@
 
   (rum/defc importer < rum/reactive
   [{:keys [query-params]}]
-  (let [support-file-based? true]
+  (let [support-file-based? (config/local-file-based-graph? (state/get-current-repo))]
     (if (state/sub :graph/importing)
       (let [{:keys [total current-idx current-page]} (state/sub :graph/importing-state)
             left-label (if (and current-idx total (= current-idx total))