minor on nodeinfo, needs to be improved

This commit is contained in:
lesion 2022-03-11 11:53:04 +01:00
parent cef6fee5ac
commit bafc748799
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -70,6 +70,7 @@
</template>
<script>
import { mapActions, mapState } from 'vuex'
import get from 'lodash/get'
import axios from 'axios'
import { mdiDeleteForever, mdiPlus, mdiChevronLeft, mdiChevronRight } from '@mdi/js'
@ -130,8 +131,8 @@ export default {
key: 'trusted_instances',
value: this.settings.trusted_instances.concat({
url: this.instance_url,
name: instance.data.metadata.nodeName,
label: instance.data.metadata.nodeLabel
name: get(instance, 'data.metadata.nodeName', ''),
label: get(instance, 'data.metadata.nodeLabel', '')
})
})
this.$refs.form.reset()