Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/components/ShowSearchResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class ShowResults extends Component {
result.resource.columns_name.forEach((columnName, i) => {
columObj[columnName] = result.resource.columns_datatype[i];
})
store.dispatch(getAsyncData(domain, id, columObj, datasetName));
store.dispatch(getAsyncData(domain, id, columObj, datasetName))
}

render() {
Expand Down
11 changes: 10 additions & 1 deletion client/store/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
datasetColumnFormatter,
uploadedDataFormatter
} from './utils/datasetOrganizingFuncs'
import { toast } from 'react-toastify'

/**
* ACTION TYPES
Expand Down Expand Up @@ -44,7 +45,15 @@ export const getAsyncData = (domain, id, columnObj, datasetName) => dispatch =>
dispatch(setData(processedData))
history.push('/graph-dataset')
})
.catch(console.error)
.catch(err => {
toast('Dataset not available, please select a different dataset', {
autoClose: 3000,
hideProgressBar: false,
closeOnClick: true,
pauseOnHover: true
})
console.error(err);
})
}

export const fetchAndSetDataFromS3 = awsId => dispatch => {
Expand Down