Fix navigation links for "script/edit" (#7363)

This commit is contained in:
Philip Allgaier 2020-10-18 00:28:05 +02:00 committed by GitHub
parent a7998b30c6
commit e603893d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 10 deletions

View File

@ -261,11 +261,7 @@ class HaConfigAreaPage extends LitElement {
return state return state
? html` ? html`
<a <a
href=${ifDefined( href=${`/config/script/edit/${state.entity_id}`}
state.attributes.id
? `/config/script/edit/${state.attributes.id}`
: undefined
)}
> >
<paper-item> <paper-item>
<paper-item-body> <paper-item-body>

View File

@ -420,11 +420,7 @@ export class HaConfigDevicePage extends LitElement {
return state return state
? html` ? html`
<a <a
href=${ifDefined( href=${`/config/script/edit/${state.entity_id}`}
state.attributes.id
? `/config/script/edit/${state.attributes.id}`
: undefined
)}
> >
<paper-item .script=${script}> <paper-item .script=${script}>
<paper-item-body> <paper-item-body>