From 6b1523f0efa5ba13071131f1bb43acb429c201df Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Tue, 8 Feb 2022 19:55:34 +0500 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D0=B0=D0=BD=D0=B0=D0=BB=D0=B8=D1=82?= =?UTF-8?q?=D0=B8=D0=BA=D0=B5=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=B1=D0=BE=D1=80=20=D0=BF=D1=80=D0=B8=20=D0=BE=D1=82?= =?UTF-8?q?=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B8=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WellCompositeEditor/WellCompositeSections.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/WellOperations/WellCompositeEditor/WellCompositeSections.jsx b/src/pages/WellOperations/WellCompositeEditor/WellCompositeSections.jsx index 30d80ea..cc08b2d 100644 --- a/src/pages/WellOperations/WellCompositeEditor/WellCompositeSections.jsx +++ b/src/pages/WellOperations/WellCompositeEditor/WellCompositeSections.jsx @@ -171,9 +171,9 @@ export const WellCompositeSections = memo(({ idWell, statsWells, selectedSection }, ] - const rowSelection = { + const rowSelection = hasPermission('WellOperation.edit') && { selectedRowKeys: selectedWellsKeys, - onChange: (keys, items) => hasPermission('WellOperation.edit') && invokeWebApiWrapperAsync( + onChange: (keys, items) => invokeWebApiWrapperAsync( async () => { const selectedSections = items.map((row) => ({idWell, idWellSrc: row.id, idWellSectionType: row.sectionId})) await WellCompositeService.save(idWell, selectedSections)