From c07121f75036a35d85e9285e0c032bd63a1bed0b Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Thu, 11 Jan 2018 23:27:54 +1300 Subject: [PATCH] Get matched event in header of panel --- src/day8/re_frame/trace/subs.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/day8/re_frame/trace/subs.cljs b/src/day8/re_frame/trace/subs.cljs index ef7fe4b..305f427 100644 --- a/src/day8/re_frame/trace/subs.cljs +++ b/src/day8/re_frame/trace/subs.cljs @@ -1,5 +1,6 @@ (ns day8.re-frame.trace.subs - (:require [mranderson047.re-frame.v0v10v2.re-frame.core :as rf])) + (:require [mranderson047.re-frame.v0v10v2.re-frame.core :as rf] + [day8.re-frame.trace.metamorphic :as metam])) (rf/reg-sub :settings/root @@ -146,7 +147,7 @@ (let [matches (:matches epochs) current-index (:current-epoch-index epochs) match (nth matches (+ (count matches) (or current-index 0)) (last matches)) - event (get-in (second match) [:tags :event])] + event (get-in (metam/matched-event match) [:tags :event])] event))) (rf/reg-sub