Skip to content

Commit

Permalink
🐛 #144 correct change value for select for preference entry
Browse files Browse the repository at this point in the history
  • Loading branch information
JAGFx committed Nov 9, 2022
1 parent d76481d commit 575a312
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/jagfx/configuration/user-preference/loader.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import userPreferenceDev from './user-preference.dev.json';
import { UserPreferenceCollection } from './user-preference.type';

// TODO: Add unit test

export const getUserPreferences = (useFakeData = false) => {
if (useFakeData) {
return new Promise<UserPreferenceCollection>((resolve) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
: currentUserPreference().value
"
@input="
(value) => update(props.preferenceEntryId, value === '' ? null : value)
(event) => update(props.preferenceEntryId, event.target.value === '' ? null : event.target.value)
"
>
<option
Expand Down

0 comments on commit 575a312

Please sign in to comment.