From 2edfa921e82bb3fb6975784822ff7c4e2bbbad05 Mon Sep 17 00:00:00 2001 From: Lera24 Date: Wed, 26 Jun 2024 16:21:51 +0300 Subject: [PATCH] fix: error in saving attribute[WTEL-4621] --- src/modules/contacts/modules/variables/api/VariablesAPI.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/contacts/modules/variables/api/VariablesAPI.js b/src/modules/contacts/modules/variables/api/VariablesAPI.js index dd4c9d0b..21991c49 100644 --- a/src/modules/contacts/modules/variables/api/VariablesAPI.js +++ b/src/modules/contacts/modules/variables/api/VariablesAPI.js @@ -67,6 +67,7 @@ const getList = async (params) => { }; const get = async ({ parentId, itemId }) => { + const fields = ['key', 'value', 'etag']; try { const response = await variablesService.listVariables( parentId, @@ -74,7 +75,7 @@ const get = async ({ parentId, itemId }) => { 1, '', null, - null, + fields, [itemId], ); const { data } = applyTransform(response.data, [ @@ -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, [