Просмотр исходного кода

fix: file-specific imports showing up for db version

Gabriel Horner 1 год назад
Родитель
Сommit
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))