diff --git a/CHANGES.md b/CHANGES.md index 3533a6197..14bba836b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -26,6 +26,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 999b2ed24..00e2c1c46 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -433,7 +433,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 _]