fix: options format
This commit is contained in:
parent
9fd6fcf8a6
commit
520d2896d2
|
@ -89,7 +89,10 @@ export default (latus) => class Audible extends Trait {
|
|||
}
|
||||
const {params} = entity.trait('Audible');
|
||||
return Object.keys(params.sounds)
|
||||
.reduce((r, key) => ({...r, [key]: key}), {});
|
||||
.map((key) => ({
|
||||
label: key,
|
||||
value: key,
|
||||
}));
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user