mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix navigation links for "script/edit" (#7363)
This commit is contained in:
parent
a7998b30c6
commit
e603893d77
@ -261,11 +261,7 @@ class HaConfigAreaPage extends LitElement {
|
||||
return state
|
||||
? html`
|
||||
<a
|
||||
href=${ifDefined(
|
||||
state.attributes.id
|
||||
? `/config/script/edit/${state.attributes.id}`
|
||||
: undefined
|
||||
)}
|
||||
href=${`/config/script/edit/${state.entity_id}`}
|
||||
>
|
||||
<paper-item>
|
||||
<paper-item-body>
|
||||
|
@ -420,11 +420,7 @@ export class HaConfigDevicePage extends LitElement {
|
||||
return state
|
||||
? html`
|
||||
<a
|
||||
href=${ifDefined(
|
||||
state.attributes.id
|
||||
? `/config/script/edit/${state.attributes.id}`
|
||||
: undefined
|
||||
)}
|
||||
href=${`/config/script/edit/${state.entity_id}`}
|
||||
>
|
||||
<paper-item .script=${script}>
|
||||
<paper-item-body>
|
||||
|
Loading…
x
Reference in New Issue
Block a user