Commit 70e419a8 authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Show error message when query fails, keep previous results

parent 826739ff
Pipeline #888 canceled with stage
......@@ -38,7 +38,9 @@ export default function Query(props) {
value={text}
onChange={onChangeText}
/>
<span className="text-danger">{error}</span>
<span className="text-danger position-absolute" style={{ bottom: '-12px' }}>
{error}
</span>
<Button variant="outline-success" type="submit" onClick={submit}>
<span role="img" aria-label="search icon">
🔎
......
......@@ -23,7 +23,6 @@ export const querySlice = createSlice({
state.error = null;
},
getQueryResultFailure: (state, action) => {
state.result = null;
state.error = action.payload;
},
setLoading: (state, action) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment