Fix previews in header section (#693)

This commit is contained in:
Rijk van Zanten
2020-06-09 16:17:04 -04:00
committed by GitHub
parent 7be23f73d5
commit b4491602f9

View File

@@ -288,7 +288,7 @@ export default defineComponent({
const avatarSrc = ref<string | null>(null);
const roleName = ref<string | null>(null);
watch(() => props.primaryKey, getUserPreviewData);
watch(() => props.primaryKey, getUserPreviewData, { immediate: true });
return { loading, error, avatarSrc, roleName };