From 348a73486674e27b05e8f9a162123c1ba1aeec42 Mon Sep 17 00:00:00 2001 From: Uladzislau_Kutarkin Date: Mon, 30 Sep 2024 11:35:34 +0400 Subject: [PATCH] UIBULKED-525: remove unused code --- .../ContentUpdatesForm/ContentUpdatesForm.js | 2 - src/constants/selectOptions.js | 46 +++++++++---------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/src/components/BulkEditPane/BulkEditListResult/BulkEditInApp/ContentUpdatesForm/ContentUpdatesForm.js b/src/components/BulkEditPane/BulkEditListResult/BulkEditInApp/ContentUpdatesForm/ContentUpdatesForm.js index e5e6677e..423eaf35 100644 --- a/src/components/BulkEditPane/BulkEditListResult/BulkEditInApp/ContentUpdatesForm/ContentUpdatesForm.js +++ b/src/components/BulkEditPane/BulkEditListResult/BulkEditInApp/ContentUpdatesForm/ContentUpdatesForm.js @@ -138,7 +138,6 @@ export const ContentUpdatesForm = ({ tenants }; - const mappedActions = getMappedActions({ fieldName, ...sharedArgs, @@ -224,7 +223,6 @@ export const ContentUpdatesForm = ({ const actionParameters = actions.find(action => Boolean(action?.parameters))?.parameters; const activeTenants = actionTenants?.find(tenant => Boolean(tenant?.length)); - console.log(activeTenants) const type = ACTIONS[typeKey]; diff --git a/src/constants/selectOptions.js b/src/constants/selectOptions.js index 0caa325a..13704fdf 100644 --- a/src/constants/selectOptions.js +++ b/src/constants/selectOptions.js @@ -314,30 +314,30 @@ export const getInstanceNotes = (formatMessage, instanceNotes) => [ ]; export const getNotesOptions = (formatMessage, itemNotes) => { - console.log(itemNotes) return [ - { - value: '', - label: formatMessage({ id: 'ui-bulk-edit.options.placeholder' }), - disabled: true, - }, - { - value: OPTIONS.ADMINISTRATIVE_NOTE, - label: formatMessage({ id: 'ui-bulk-edit.layer.options.administrativeNote' }), - disabled: false, - }, - { - value: OPTIONS.CHECK_IN_NOTE, - label: formatMessage({ id: 'ui-bulk-edit.layer.options.checkInNote' }), - disabled: false, - }, - { - value: OPTIONS.CHECK_OUT_NOTE, - label: formatMessage({ id: 'ui-bulk-edit.layer.options.checkOutNote' }), - disabled: false, - }, - ...itemNotes, -]}; + { + value: '', + label: formatMessage({ id: 'ui-bulk-edit.options.placeholder' }), + disabled: true, + }, + { + value: OPTIONS.ADMINISTRATIVE_NOTE, + label: formatMessage({ id: 'ui-bulk-edit.layer.options.administrativeNote' }), + disabled: false, + }, + { + value: OPTIONS.CHECK_IN_NOTE, + label: formatMessage({ id: 'ui-bulk-edit.layer.options.checkInNote' }), + disabled: false, + }, + { + value: OPTIONS.CHECK_OUT_NOTE, + label: formatMessage({ id: 'ui-bulk-edit.layer.options.checkOutNote' }), + disabled: false, + }, + ...itemNotes, + ]; +}; export const getDuplicateNoteOptions = (formatMessage) => [ {