From be446c6d7922f10cc70143b9b169ea11c1de95f6 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 13 Apr 2016 20:46:15 +0300 Subject: [PATCH] Make grid component reactive to grid options change. --- src/uxbox/ui/workspace/grid.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxbox/ui/workspace/grid.cljs b/src/uxbox/ui/workspace/grid.cljs index e58557058..a5b864c48 100644 --- a/src/uxbox/ui/workspace/grid.cljs +++ b/src/uxbox/ui/workspace/grid.cljs @@ -20,7 +20,7 @@ (defn- grid-render [own] - (let [options (:options @wb/page-l) + (let [options (:options (rum/react wb/page-l)) color (:grid/color options "#cccccc") width c/viewport-width height c/viewport-height @@ -43,7 +43,7 @@ (mx/component {:render grid-render :name "grid" - :mixins [mx/static]})) + :mixins [mx/static rum/reactive]})) ;; --- Helpers