🐛 fix(reactflowUtils.ts): remove unnecessary space in key assignment to maintain consistent object key order

This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-15 14:50:27 -03:00
commit c6122980ad

View file

@ -307,7 +307,7 @@ export function convertArrayToObj(newValue) {
for (const obj of newValue) {
for (const key in obj) {
if (obj.hasOwnProperty(key)) {
flattenedObject[' ' + key] = obj[key]; //added space to dont order when add new keys to object
flattenedObject[key] = obj[key]; //added space to dont order when add new keys to object
}
}
}