Let a dashboard be read against runs instead of the live engine
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useLiveValue } from "@/components/Flow/liveStore"
|
||||
import { cn } from "@/lib/utils"
|
||||
import { useBoundValue } from "./dataContext"
|
||||
import { ICON_COLORS, ICONS } from "./icons"
|
||||
import { config } from "./ui/core/config"
|
||||
import type { WidgetProps } from "./widgets"
|
||||
@@ -24,7 +24,7 @@ type ForecastItem = {
|
||||
export function ForecastWidget({ widget }: WidgetProps) {
|
||||
const cfg = config(widget)
|
||||
const message = cfg.message ? String(cfg.message) : ""
|
||||
const live = useLiveValue(message || undefined)
|
||||
const live = useBoundValue(message || undefined)
|
||||
if (!message) {
|
||||
return <p className="text-muted-foreground">Pick a message.</p>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user