diff --git a/frontend/src/app/main/ui/context.cljs b/frontend/src/app/main/ui/context.cljs index ed80794358..92a01bb6b4 100644 --- a/frontend/src/app/main/ui/context.cljs +++ b/frontend/src/app/main/ui/context.cljs @@ -19,5 +19,5 @@ (def current-scroll (mf/create-context nil)) (def current-zoom (mf/create-context nil)) -(def active-frames-ctx (mf/create-context nil)) +(def active-frames (mf/create-context nil)) (def render-thumbnails (mf/create-context nil)) diff --git a/frontend/src/app/main/ui/workspace/shapes.cljs b/frontend/src/app/main/ui/workspace/shapes.cljs index 293492c83e..0c93d33eda 100644 --- a/frontend/src/app/main/ui/workspace/shapes.cljs +++ b/frontend/src/app/main/ui/workspace/shapes.cljs @@ -54,7 +54,7 @@ (mf/deps objects) #(cph/objects-by-frame objects))] - [:& (mf/provider ctx/active-frames-ctx) {:value active-frames} + [:& (mf/provider ctx/active-frames) {:value active-frames} ;; Render font faces only for shapes that are part of the root ;; frame but don't belongs to any other frame. (let [xform (comp @@ -79,7 +79,7 @@ (let [shape (obj/get props "shape") active-frames - (when (cph/root-frame? shape) (mf/use-ctx ctx/active-frames-ctx)) + (when (cph/root-frame? shape) (mf/use-ctx ctx/active-frames)) thumbnail? (and (some? active-frames)