Closed mauthi closed 5 years ago
That's odd,
Could you check in vue devtools / console the output of $vm0.$store.state.enums.genders._get(2)
?
Could you check in vue devtools / console the output of $vm0.$store.state.enums.genders._get(2)?
Result:
I really cannot reproduce this one. I tried locally, on laravel-enso.com and it works as expected.
Maybe you did something to customize the Enum.js
? Or maybe it has something to do with localisation?
$vm0.$store.state.enums.genders._get("2")
is still undefined?
I tried to reproduce this on laravel-enso.com and there it's also not working in German. So I think that it has todo something with localisation.
Please compare the following screenshots:
EN
DE
Ok, will look into it
This is a bug.
Prerequisites
Description
If I open the profile page I get the following:
No error or something else.
Steps to Reproduce
-
Expected behavior
In
@enso-ui/ui/src/bulma/pages/administration/users/components/UserProfile.vue
on Line 139profile.person.gender
has the value 2 andenums.genders._get(2)
should returnmale
.Actual behavior
In
@enso-ui/ui/src/bulma/pages/administration/users/components/UserProfile.vue
on Line 139profile.person.gender
has the value 2 butenums.genders._get(2)
does not return anything.