Fixes the formatting of enum relations in query results.
Before:
After:
I also noticed that <template v-if="is_array"> was never getting used because <template v-if="is_object"> never gets executed for an array.
I swapped the templates to use <template v-else-if="is_object"> so it correctly switches between the 3 cases of array, object and single value.
There was also another minor mistake with v-for which fixed the formatting of array types.
Before:
After:
Tested using the following reproduction flecs app and then attempted to edit the singleton state of GameState via the explorer.
Fixes the formatting of enum relations in query results.
Before:
After:
I also noticed that
<template v-if="is_array">
was never getting used because<template v-if="is_object">
never gets executed for an array. I swapped the templates to use<template v-else-if="is_object">
so it correctly switches between the 3 cases of array, object and single value.There was also another minor mistake with
v-for
which fixed the formatting of array types. Before:After:
Tested using the following reproduction flecs app and then attempted to edit the singleton state of
GameState
via the explorer.