fix: options format

This commit is contained in:
cha0s 2021-01-29 15:20:34 -06:00
parent 9fd6fcf8a6
commit 520d2896d2

View File

@ -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,
}));
}
};