Make workspace readiness state more robust

This commit is contained in:
Andrey Antukh 2023-05-24 23:28:28 +02:00 committed by Alejandro Alonso
parent bd834ba840
commit a6659601f4
2 changed files with 10 additions and 8 deletions

View file

@ -137,9 +137,12 @@
project (mf/deref refs/workspace-project)
layout (mf/deref refs/workspace-layout)
wglobal (mf/deref refs/workspace-global)
ready? (mf/deref refs/workspace-ready?)
read-only? (mf/deref refs/workspace-read-only?)
ready-lens (mf/with-memo [file-id]
(refs/make-workspace-ready-ref file-id))
ready? (mf/deref ready-lens)
team-id (:team-id project)
file-name (:name file)