Explore: Fix legend toggling (#47823)

This commit is contained in:
Piotr Jamróz 2022-04-28 15:55:16 +02:00 committed by GitHub
parent 9b0b391949
commit f0f3134cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ const getExistingDisplayNames = (rule: SystemConfigOverrideRule): string[] => {
if (!Array.isArray(names)) {
return [];
}
return names;
return [...names];
};
const allFieldsAreExcluded = (override: SystemConfigOverrideRule, data: DataFrame[]): boolean => {