We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9a1f67 commit 35b89cbCopy full SHA for 35b89cb
src/index.ts
@@ -222,8 +222,8 @@ export default async function storyblokToTypescript({
222
options = element.options.map(item => item.value);
223
}
224
225
- if (options.length && element.exclude_empty_option !== true) {
226
- options.unshift('')
+ if (options.length && element.exclude_empty_option === true) {
+ options = options.filter(option => option !== "")
227
228
229
// option types with source self do not have a source field but the options as array
0 commit comments