import { SHOW_DOCUMENT_LIST, showDocumentListAction } from '../actions'

const databases = (state = [{name: "host"}], action) => {
  switch(action.type){
    case SHOW_DOCUMENT_LIST:
      return {
        name: action.name
      }
    default:
      return state
  }
}

export default databases
@@ -180,57 +180,8 @@
 ST:%0A
-      return %7B%0A        name: action.name%0A      %7D%0A
     

Fix reducer for databases