Skip to content
Snippets Groups Projects
Unverified Commit 026889cd authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix FETCH_DATABASES reducer error

parent 5255a702
No related branches found
No related tags found
No related merge requests found
......@@ -400,7 +400,7 @@ const databases = handleActions({
}, {});
const databasesList = handleActions({
[FETCH_DATABASES]: { next: (state, { payload }) => payload.result }
[FETCH_DATABASES]: { next: (state, { payload }) => (payload && payload.result) || state }
}, []);
const tables = handleActions({
......
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