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:
Gabriel Horner
2025-05-19 08:55:39 -04:00
parent 5b7fba1bcb
commit 19ad493852

View File

@@ -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 []