mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): remove code that never runs from table view
This commit is contained in:
parent
24288a554d
commit
167312d059
|
@ -408,24 +408,6 @@ export default mixins(externalHooks).extend({
|
||||||
entryRows = [];
|
entryRows = [];
|
||||||
leftEntryColumns = Object.keys(entry || {});
|
leftEntryColumns = Object.keys(entry || {});
|
||||||
|
|
||||||
// Go over all the already existing column-keys
|
|
||||||
tableColumns.forEach((key) => {
|
|
||||||
if (entry.hasOwnProperty(key)) {
|
|
||||||
// Entry does have key so add its value
|
|
||||||
entryRows.push(entry[key]);
|
|
||||||
// Remove key so that we know that it got added
|
|
||||||
leftEntryColumns.splice(leftEntryColumns.indexOf(key), 1);
|
|
||||||
|
|
||||||
hasJson[key] =
|
|
||||||
hasJson[key] ||
|
|
||||||
(typeof entry[key] === 'object' && Object.keys(entry[key] || {}).length > 0) ||
|
|
||||||
false;
|
|
||||||
} else {
|
|
||||||
// Entry does not have key so add null
|
|
||||||
entryRows.push(null);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Go over all the columns the entry has but did not exist yet
|
// Go over all the columns the entry has but did not exist yet
|
||||||
leftEntryColumns.forEach((key) => {
|
leftEntryColumns.forEach((key) => {
|
||||||
// Add the key for all runs in the future
|
// Add the key for all runs in the future
|
||||||
|
|
Loading…
Reference in a new issue