Update sort changes correctly (#2590)

This commit is contained in:
Parth 2024-11-07 19:59:23 +05:30 committed by Akshay Sasidharan
parent b6822a3ce2
commit dd2f6438f4

View file

@ -26,14 +26,9 @@ export default ({
}
function keyValuePairValueChanged(value, keyIndex, index) {
if (!isRenderedAsQueryEditor) {
const newOptions = deepClone(options);
newOptions[index][keyIndex] = value;
options.length - 1 === index ? addNewKeyValuePair(newOptions) : optionchanged(getter, newOptions);
} else {
options[index][keyIndex] = value;
optionchanged(getter, options);
}
const newOptions = deepClone(options);
newOptions[index][keyIndex] = value;
options.length - 1 === index ? addNewKeyValuePair(newOptions) : optionchanged(getter, newOptions);
}
const commonProps = {