ui: display account name only if its not null (#4667)

If account is null then "undefined" is displayed in ui
This commit is contained in:
Rakesh 2021-02-19 09:37:38 +01:00 committed by GitHub
parent db1e0f49dc
commit 06b5bd2966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@
:pagination="false"
>
<template slot="account" slot-scope="record">
<a-button @click="() => handleOpenAccountModal(record)">{{ `[${record.domain}] ${record.account}` }}</a-button>
<a-button @click="() => handleOpenAccountModal(record)">{{ `[${record.domain}] ${record.account === undefined ? '' : record.account}` }}</a-button>
</template>
<template slot="actions" slot-scope="record">
<div class="actions">