fix: write files only if it's a file-based graph

experiment/tanstack-table
Tienson Qin 2024-06-13 09:12:52 +08:00
parent 03f797fde3
commit 2545d15a5e
1 changed files with 2 additions and 1 deletions

View File

@ -124,5 +124,6 @@
(let [repo (ffirst col)
conn (worker-state/get-datascript-conn repo)]
(if conn
(write-files! conn col (worker-state/get-context))
(when-not (ldb/db-based-graph? @conn)
(write-files! conn col (worker-state/get-context)))
(js/console.error (str "DB is not found for ") repo)))))))