Skip to content
Snippets Groups Projects
Unverified Commit 805ecd47 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Do not allow `undefined` when updating a user setting (#39728)

parent 7bc9f106
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ export const updateUserSetting = createThunkAction(
UPDATE_USER_SETTING,
function <K extends keyof UserSettings>(setting: {
key: K;
value: UserSettings[K];
value: Exclude<UserSettings[K], undefined>;
}) {
return async function (dispatch) {
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment