Skip to content

Commit 1913d5f

Browse files
committed
Add tests for common select
1 parent 377bf8b commit 1913d5f

File tree

3 files changed

+729
-6
lines changed

3 files changed

+729
-6
lines changed

packages/common/src/select/reducer.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ const reducer = (state, { type, payload, options = [] }) => {
77
isLoading: false,
88
promises: {}
99
};
10-
case 'loaded':
11-
return {
12-
...state,
13-
isLoading: false
14-
};
1510
case 'startLoading':
1611
return {
1712
...state,

packages/common/src/select/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ const Select = ({
128128
})
129129
.catch((error) => {
130130
dispatch({ type: 'setPromises', payload: { [inputValue]: false } });
131-
throw error;
131+
// eslint-disable-next-line no-console
132+
console.error(error);
132133
});
133134
}
134135
};

0 commit comments

Comments
 (0)