From 3a6f162cc6f8c4050b1752f35dfd6c31d43abec9 Mon Sep 17 00:00:00 2001 From: Victor Marin <36818606+mdvictor@users.noreply.github.com> Date: Wed, 3 May 2023 16:29:48 +0300 Subject: [PATCH] Datagrid: Remove multi-paste (#67387) remove multi-paste functionality and unneccessary async from func --- public/app/plugins/panel/datagrid/DataGridPanel.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/plugins/panel/datagrid/DataGridPanel.tsx b/public/app/plugins/panel/datagrid/DataGridPanel.tsx index dc72717ce5c..a79fc9f45c6 100644 --- a/public/app/plugins/panel/datagrid/DataGridPanel.tsx +++ b/public/app/plugins/panel/datagrid/DataGridPanel.tsx @@ -76,7 +76,7 @@ export function DataGridPanel({ options, data, id, fieldConfig, width, height }: return getGridCellKind(field, row, hasGridSelection(gridSelection)); }; - const onCellEdited = async (cell: Item, newValue: EditableGridCell) => { + const onCellEdited = (cell: Item, newValue: EditableGridCell) => { // if there are rows selected, return early, we don't want to edit any cell if (hasGridSelection(gridSelection)) { return; @@ -263,7 +263,6 @@ export function DataGridPanel({ options, data, id, fieldConfig, width, height }: getCellsForSelection={isDatagridEnabled() ? true : undefined} showSearch={isDatagridEnabled() ? toggleSearch : false} onSearchClose={onSearchClose} - onPaste={isDatagridEnabled() ? true : undefined} gridSelection={gridSelection} onGridSelectionChange={isDatagridEnabled() ? onGridSelectionChange : undefined} onRowAppended={isDatagridEnabled() ? addNewRow : undefined}