fix(editor): remove code that never runs from table view

This commit is contained in:
Csaba Tuncsik 2022-10-14 10:57:16 +02:00
parent 24288a554d
commit 167312d059

View file

@ -408,24 +408,6 @@ export default mixins(externalHooks).extend({
entryRows = [];
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
leftEntryColumns.forEach((key) => {
// Add the key for all runs in the future