diff --git a/CHANGES.md b/CHANGES.md index c48189b4d..ff6096035 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ - Fix webhooks not shown in list [Taiga #10763](https://tree.taiga.io/project/penpot/issue/10763) - Fix colorpicker scroll when dropdown displayed [Taiga #10696](https://tree.taiga.io/project/penpot/issue/10696) +- Clean internal workspace state on exit or url changed [Taiga #10619](https://tree.taiga.io/project/penpot/issue/10619) ## 2.6.0 diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index b73695c67..3e1fcba1b 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -423,7 +423,8 @@ :workspace-tokens :workspace-undo) (update :workspace-global dissoc :read-only?) - (assoc-in [:workspace-global :options-mode] :design))) + (assoc-in [:workspace-global :options-mode] :design) + (update :files d/update-vals #(dissoc % :data)))) ptk/WatchEvent (watch [_ state _]