fix: queries B and C coupling in a dashboard panel (#2218)

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
This commit is contained in:
GitStart 2023-02-10 10:30:38 +05:00 committed by GitHub
parent aaeb579d0d
commit ae37a608f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,6 @@ function QuerySection({
setLocalQueryChanges(cloneDeep(query) as Query);
}, [query]);
const queryDiff = (
queryA: Query,
queryB: Query,
@ -142,7 +141,7 @@ function QuerySection({
const handleLocalQueryUpdate = ({
updatedQuery,
}: IHandleUpdatedQuery): void => {
setLocalQueryChanges(updatedQuery);
setLocalQueryChanges(cloneDeep(updatedQuery));
};
return (