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)