Skip to content

Commit

Permalink
Return indexes rather than values for the enum type in the inspector
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Feb 27, 2024
1 parent 73ea2c9 commit 58ced7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/inspector/app/components/SelectInput/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function SelectInput ({
{
(data?.enum || [])
.map((value, i) => {
return <option key={i} value={value}>{value}</option>
return <option key={i} value={i}>{value}</option>
})
}
</select>
Expand Down
2 changes: 1 addition & 1 deletion plugins/types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const manifest = require('./package.json')
const types = require('./lib/types')

const GROUP_PLAY_MODES = {
all: 'Trigger all children at once'
all: 0
}

const PLAY_HANDLERS = {
Expand Down
2 changes: 1 addition & 1 deletion plugins/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"playMode": {
"name": "Play mode",
"type": "enum",
"default": "Trigger all children at once",
"default": 0,
"enum": ["Trigger all children at once"],
"ui.group": "Timing"
}
Expand Down

0 comments on commit 58ced7c

Please sign in to comment.