mirror of
https://github.com/apache/superset.git
synced 2026-04-27 20:14:54 +00:00
fix(dashboard): missing null check in error extra (#27845)
This commit is contained in:
@@ -56,7 +56,14 @@ const mockedProps = {
|
||||
};
|
||||
|
||||
test('should render', () => {
|
||||
const { container } = render(<DatabaseErrorMessage {...mockedProps} />);
|
||||
const nullExtraProps = {
|
||||
...mockedProps,
|
||||
error: {
|
||||
...mockedProps.error,
|
||||
extra: null,
|
||||
},
|
||||
};
|
||||
const { container } = render(<DatabaseErrorMessage {...nullExtraProps} />);
|
||||
expect(container).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user