Skip to content

Commit a0c61ca

Browse files
committed
fix git option migration bug
1 parent 118ed1d commit a0c61ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/src/views/GitInput.coffee

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ export default defineComponent
7474
get_saved = =>
7575
saved_config.value = (await get_global_state config_key) or null
7676
if saved_config.value
77-
Object.assign options, saved_config.value.options.filter (o) =>
78-
# to not mess things up when changes in default options
79-
options.some (oo) => oo.value == o.value
77+
for option from options
78+
saved = saved_config.value.options.find (o) =>
79+
o.value == option.value
80+
if saved
81+
option.active = saved.active
8082
# because modifying `options` this will have changed `command`
8183
# via watchEffect, we need to wait before overwriting it
8284
await nextTick()

0 commit comments

Comments
 (0)