Fixed issue on app crash while deleting query created from gds (#6563)

This commit is contained in:
Kavin Venkatachalam 2023-05-26 16:00:22 +05:30 committed by GitHub
parent ec3fa5cde2
commit b9210509ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,7 +409,7 @@ class QueryManagerComponent extends React.Component {
// Clear the focus field value from options
cleanFocusedFields = (newOptions) => {
const diffFields = diff(newOptions, this.defaultOptions.current);
const diffFields = diff(newOptions, this.defaultOptions.current ?? {});
const updatedOptions = { ...newOptions };
Object.keys(diffFields).forEach((key) => {
if (newOptions[key] === '' && this.defaultOptions.current[key] === undefined) {