web: fix error when applications have no provider assigned

This commit is contained in:
Jens Langhammer 2020-12-27 19:40:50 +01:00
parent a7bdd63e4d
commit 4fea0f5939
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ export class Application {
pk: string;
name: string;
slug: string;
provider: Provider;
provider?: Provider;
launch_url: string;
meta_launch_url: string;

View File

@ -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">