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; pk: string;
name: string; name: string;
slug: string; slug: string;
provider: Provider; provider?: Provider;
launch_url: string; launch_url: string;
meta_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``} ${item.meta_publisher ? html`<small>${item.meta_publisher}</small>` : html``}
</a>`, </a>`,
html`<code>${item.slug}</code>`, html`<code>${item.slug}</code>`,
html`${item.provider.name}`, html`${item.provider?.name}`,
html`${item.provider.verbose_name}`, html`${item.provider?.verbose_name}`,
html` html`
<ak-modal-button href="${Application.adminUrl(`${item.pk}/update/`)}"> <ak-modal-button href="${Application.adminUrl(`${item.pk}/update/`)}">
<ak-spinner-button slot="trigger" class="pf-m-secondary"> <ak-spinner-button slot="trigger" class="pf-m-secondary">