1) Fixed an issue where a warning message was shown after database creation/modification. Fixes #7142.

2) Added error boundary to schema view which will improve the exception stack trace details.
3) Fixed Jasmine test cases.
This commit is contained in:
Aditya Toshniwal
2022-01-31 13:41:22 +05:30
committed by Akshay Joshi
parent 1a89c1f85f
commit bc0b25d995
5 changed files with 50 additions and 4 deletions

View File

@@ -38,6 +38,7 @@ import FieldSetView from './FieldSetView';
import DataGridView from './DataGridView';
import { useIsMounted } from '../custom_hooks';
import Notify from '../helpers/Notifier';
import ErrorBoundary from '../helpers/ErrorBoundary';
const useDialogStyles = makeStyles((theme)=>({
root: {
@@ -947,13 +948,17 @@ export default function SchemaView({formType, ...props}) {
if(formType === 'tab') {
return (
<Theme>
<SchemaPropertiesView {...props}/>
<ErrorBoundary>
<SchemaPropertiesView {...props}/>
</ErrorBoundary>
</Theme>
);
}
return (
<Theme>
<SchemaDialogView {...props}/>
<ErrorBoundary>
<SchemaDialogView {...props}/>
</ErrorBoundary>
</Theme>
);
}