From 31e953daf21305e0a92f70d3a33ed9740e6ded70 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 12 Jan 2018 17:15:13 -0500 Subject: [PATCH] Clear previous children on re-render --- src/looped_in/sidebar.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/looped_in/sidebar.cljs b/src/looped_in/sidebar.cljs index e126d0d..a0579c0 100644 --- a/src/looped_in/sidebar.cljs +++ b/src/looped_in/sidebar.cljs @@ -59,6 +59,7 @@ $comments))) (defn render-items [items] + (dom/removeChildren (dom/getElement "storiesContainer")) (let [stories (filter #(= "story" (% "type")) items) $stories (clj->js (map story-dom stories)) $storiesContainer (dom/getElement "storiesContainer")]