Skip to content

Commit e84a84b

Browse files
committed
Fixed exporter setting not starting with a valid value
1 parent 270bb89 commit e84a84b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/settings.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export const DefaultSettings = {
4646
return tl('animatedJava.settings.exporter.description')
4747
},
4848
type: 'select',
49-
default: '',
49+
get default() {
50+
return [...store.getStore('exporters').keys()][0]
51+
},
5052
get options() {
5153
return Object.fromEntries(
5254
[...store.getStore('exporters').keys()].map((v) => [
@@ -56,6 +58,8 @@ export const DefaultSettings = {
5658
)
5759
},
5860
onUpdate(d) {
61+
console.log(d)
62+
console.log([...store.getStore('exporters').keys()])
5963
if (
6064
![...store.getStore('exporters').keys()].includes(d.value)
6165
) {

0 commit comments

Comments
 (0)