Fix location field not showing in preferences if setting not set

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-03-16 18:51:34 +01:00
parent 63740eb67f
commit c8e39313ef
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -59,9 +59,7 @@
<b-field grouped> <b-field grouped>
<b-field :label="$t('City or region')" expanded> <b-field :label="$t('City or region')" expanded>
<address-auto-complete <address-auto-complete
v-if=" v-if="loggedUser && loggedUser.settings"
loggedUser && loggedUser.settings && loggedUser.settings.location
"
:type="AddressSearchType.ADMINISTRATIVE" :type="AddressSearchType.ADMINISTRATIVE"
:doGeoLocation="false" :doGeoLocation="false"
v-model="address" v-model="address"