generated from Seekra/repository-template
fix(settings): update settings input to use default value
The SettingsInput component now uses the default value if there is a default value. Tests for this were added.
This commit is contained in:
@@ -35,7 +35,7 @@ const props = defineProps({
|
||||
|
||||
const store = useSettingsStore();
|
||||
|
||||
const inputModel = ref(store.get(props.path));
|
||||
const inputModel = ref(store.get(props.path) ?? props.setting.default);
|
||||
let oldInputValue = inputModel.value;
|
||||
|
||||
const doneButtonInitial = ref(true);
|
||||
|
||||
Reference in New Issue
Block a user