web: fix error when applications have no provider assigned
This commit is contained in:
parent
a7bdd63e4d
commit
4fea0f5939
|
@ -5,7 +5,7 @@ export class Application {
|
|||
pk: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
provider: Provider;
|
||||
provider?: Provider;
|
||||
|
||||
launch_url: string;
|
||||
meta_launch_url: string;
|
||||
|
|
|
@ -58,8 +58,8 @@ export class ApplicationList extends TablePage<Application> {
|
|||
${item.meta_publisher ? html`<small>${item.meta_publisher}</small>` : html``}
|
||||
</a>`,
|
||||
html`<code>${item.slug}</code>`,
|
||||
html`${item.provider.name}`,
|
||||
html`${item.provider.verbose_name}`,
|
||||
html`${item.provider?.name}`,
|
||||
html`${item.provider?.verbose_name}`,
|
||||
html`
|
||||
<ak-modal-button href="${Application.adminUrl(`${item.pk}/update/`)}">
|
||||
<ak-spinner-button slot="trigger" class="pf-m-secondary">
|
||||
|
|
Reference in New Issue