Set columns to empty array rather than null in ds webapp
If no data has been received. Since the 'columns' property was marked 'required', this eliminates a warning that was being logged to console.
This commit is contained in:
1 parent
8e7552b144
commit
7c6cbbe83c
1 file changed
+1
-1
@@ -161,7 +161,7 @@ const App = () => {
|
||||
</div>
|
||||
<div style={{ width: '90%', rightMargin: '100px' }}>
|
||||
<QueryStatusView queryState={queryState} details={queryStateDetails} error={queryError} />
|
||||
<DataTable columns={blueTable?.columns} rows={blueTable?.rows ?? []} sx={{ margin: theme.spacing(2) }} />
|
||||
<DataTable columns={blueTable?.columns ?? []} rows={blueTable?.rows ?? []} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user