ui: Fix access to empty array when importing domain
This commit is contained in:
parent
063f863ae1
commit
a5b1b7395a
|
@ -352,7 +352,7 @@
|
|||
<Icon name="list-ul" aria-hidden="true" /><br>
|
||||
{$t('domains.actions.view')}
|
||||
</Button>
|
||||
{#if domain.zone_history.length && selectedHistory === $domains_idx[selectedDomain].zone_history[0]}
|
||||
{#if $domains_idx[selectedDomain].zone_history && selectedHistory === $domains_idx[selectedDomain].zone_history[0]}
|
||||
<Button
|
||||
size="sm"
|
||||
color="success"
|
||||
|
|
Loading…
Reference in New Issue