mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: new dev cmd inconsistently appearing in cmd list
Db only cmds should use :db-graph? not :inactive. Using :inactive doesn't work for specific graph types. For example if the app loads with a file graph, the dev cmd is marked as inactive and after switching to db graph it is still inactive
This commit is contained in:
@@ -594,7 +594,8 @@
|
||||
:fn commit/show-commit-modal!}
|
||||
|
||||
:dev/fix-broken-graph {:binding []
|
||||
:inactive (not (config/db-based-graph? (state/get-current-repo)))
|
||||
:inactive (not (state/developer-mode?))
|
||||
:db-graph? true
|
||||
:fn #(repo-handler/fix-broken-graph! (state/get-current-repo))}
|
||||
|
||||
:dev/replace-graph-with-db-file {:binding []
|
||||
|
||||
Reference in New Issue
Block a user