mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Revert "Colorize trace paths for choose without explicit default case"
This reverts commit c1f462b8f8c5582ba9448bdea5da5173d23faea8.
This commit is contained in:
parent
c1f462b8f8
commit
137f8ad4cb
@ -143,12 +143,11 @@ class HatScriptGraph extends LitElement {
|
||||
graphStart = false
|
||||
) {
|
||||
const trace = this.trace.trace[path] as ChooseActionTraceStep[] | undefined;
|
||||
const trace_path =
|
||||
trace !== undefined
|
||||
? trace[0].result?.choice === "default" || trace[0].result === undefined
|
||||
? [Array.isArray(config.choose) ? config.choose.length : 0]
|
||||
: [trace[0].result.choice]
|
||||
: [];
|
||||
const trace_path = trace?.[0].result
|
||||
? trace[0].result.choice === "default"
|
||||
? [Array.isArray(config.choose) ? config.choose.length : 0]
|
||||
: [trace[0].result.choice]
|
||||
: [];
|
||||
return html`
|
||||
<hat-graph
|
||||
tabindex=${trace === undefined ? "-1" : "0"}
|
||||
@ -205,9 +204,7 @@ class HatScriptGraph extends LitElement {
|
||||
<hat-graph-spacer
|
||||
class=${classMap({
|
||||
track:
|
||||
trace !== undefined &&
|
||||
(trace[0].result?.choice === "default" ||
|
||||
trace[0].result === undefined),
|
||||
trace !== undefined && trace[0].result?.choice === "default",
|
||||
})}
|
||||
></hat-graph-spacer>
|
||||
${ensureArray(config.default)?.map((action, i) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user