generated from Seekra/repository-template
refactor(settings): remove unused parameter
Removed unused oldValue parameter in the selection component.
This commit is contained in:
@@ -56,7 +56,7 @@ const store = useSettingsStore();
|
|||||||
const optionType = computed(() => props.setting.allowMultiple ? 'checkbox' : 'radio');
|
const optionType = computed(() => props.setting.allowMultiple ? 'checkbox' : 'radio');
|
||||||
const selected = ref(normalizeSelectedValue(store.get(props.path) ?? props.setting.default));
|
const selected = ref(normalizeSelectedValue(store.get(props.path) ?? props.setting.default));
|
||||||
|
|
||||||
watch(selected, (newValue, oldValue) => {
|
watch(selected, (newValue) => {
|
||||||
store.set(props.path, newValue);
|
store.set(props.path, newValue);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user