fix: Typing of labelMap (#21181)

* fix: Typing of labelMap

* Adjusts val types
This commit is contained in:
Michael S. Molina
2022-08-26 08:22:57 -03:00
committed by GitHub
parent 5811262cf2
commit 1143e17742
11 changed files with 47 additions and 64 deletions

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { DataRecordValue, QueryObjectFilterClause } from '@superset-ui/core';
import { QueryObjectFilterClause } from '@superset-ui/core';
import { EChartTransformedProps, EventHandlers } from '../types';
export type Event = {
@@ -42,7 +42,7 @@ export const contextMenuEventHandler =
(
groupby: EChartTransformedProps<any>['groupby'],
onContextMenu: EChartTransformedProps<any>['onContextMenu'],
labelMap: Record<string, DataRecordValue[]>,
labelMap: Record<string, string[]>,
) =>
(e: Event) => {
if (onContextMenu) {