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;
|
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;
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Reference in a new issue