Browse Source

fix(settings): Vue console error

Kristian Vos 5 years ago
parent
commit
f7d01fceb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/components/User/Settings.vue

+ 1 - 1
frontend/components/User/Settings.vue

@@ -62,7 +62,7 @@
 				<div class="control is-expanded avatar-select">
 					<label>Avatar</label>
 					<div class="select">
-						<select v-model="user.avatar.type">
+						<select v-if="user.avatar" v-model="user.avatar.type">
 							<option value="gravatar">Using Gravatar</option>
 							<option value="initials">Based on initials</option>
 						</select>