Skip to content

Commit

Permalink
UIBULKED-525: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Sep 30, 2024
1 parent 75b90dc commit 348a734
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export const ContentUpdatesForm = ({
tenants
};


const mappedActions = getMappedActions({
fieldName,
...sharedArgs,
Expand Down Expand Up @@ -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];

Expand Down
46 changes: 23 additions & 23 deletions src/constants/selectOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => [
{
Expand Down

0 comments on commit 348a734

Please sign in to comment.