Skip to content
Snippets Groups Projects
Commit fce909d5 authored by ali asaria's avatar ali asaria
Browse files

prevent crash on bad data

parent 198ee628
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ export default function PreviewDatasetModal({ dataset_id, open, setOpen }) {
<Box sx={{ overflow: 'auto', height: '100%' }}>
{isLoading && <CircularProgress />}
{data &&
data.data['columns'] && ( //Data is loaded as a map of column names to arrays of values
data?.data?.['columns'] && ( //Data is loaded as a map of column names to arrays of values
<Table sx={{ tableLayout: 'auto', overflow: 'scroll' }}>
<thead>
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment