Skip to content

Commit

Permalink
UIBULKED-572: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Oct 24, 2024
1 parent 31788a6 commit f676780
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ export const ContentUpdatesForm = ({

const actionParameters = actions.find(action => Boolean(action?.parameters))?.parameters;
const filteredTenants = actionTenants.filter(Boolean);
console.log(filteredTenants)

const activeTenants = filteredTenants.length === 1
? filteredTenants.flat()
Expand All @@ -233,7 +232,7 @@ export const ContentUpdatesForm = ({
.filter((tenant, index, array) => array.indexOf(tenant) !== index);

// That tenants array need when we use find and replace action with two different action values
const updated_tenants = filteredTenants[1] || []
const updatedTenants = filteredTenants[1] || [];
const type = ACTIONS[typeKey];

return {
Expand All @@ -244,7 +243,7 @@ export const ContentUpdatesForm = ({
initial,
updated,
tenants: activeTenants,
updated_tenants,
updated_tenants: updatedTenants,
parameters: [
...(parameters || []),
...(actionParameters || []),
Expand Down

0 comments on commit f676780

Please sign in to comment.