mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
Update sort changes correctly (#2590)
This commit is contained in:
parent
b6822a3ce2
commit
dd2f6438f4
1 changed files with 3 additions and 8 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue