Skip to content

Commit

Permalink
fix: error in saving attribute[WTEL-4621]
Browse files Browse the repository at this point in the history
  • Loading branch information
Lera24 committed Jun 26, 2024
1 parent 9ad4ade commit 2edfa92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/contacts/modules/variables/api/VariablesAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ const getList = async (params) => {
};

const get = async ({ parentId, itemId }) => {
const fields = ['key', 'value', 'etag'];
try {
const response = await variablesService.listVariables(
parentId,
1,
1,
'',
null,
null,
fields,
[itemId],
);
const { data } = applyTransform(response.data, [
Expand All @@ -88,7 +89,7 @@ const get = async ({ parentId, itemId }) => {
}
};

const fieldsToSend = ['id', 'key', 'value', 'etag'];
const fieldsToSend = ['key', 'value'];

const add = async ({ parentId, itemInstance }) => {
const item = applyTransform(itemInstance, [
Expand Down

0 comments on commit 2edfa92

Please sign in to comment.