Skip to content

Commit

Permalink
fix(editor): emphasizing magic variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Nov 1, 2022
1 parent 0bd9bed commit 04dd60f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/editor-ui/src/components/RunDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ import Draggable from '@/components/Draggable.vue';
import { shorten } from '@/components/helpers';
import { externalHooks } from '@/components/mixins/externalHooks';
const MAX_COLUMNS_LIMIT = 40;
export default mixins(externalHooks).extend({
name: 'run-data-table',
components: { Draggable },
Expand Down Expand Up @@ -201,7 +203,6 @@ export default mixins(externalHooks).extend({
hoveringPath: null as null | string,
mappingHintVisible: false,
activeRow: null as number | null,
columnLimit: 40,
columnLimitExceeded: false,
};
},
Expand Down Expand Up @@ -427,9 +428,9 @@ export default mixins(externalHooks).extend({
entryRows = [];
const entryColumns = Object.keys(entry || {});
if(entryColumns.length > this.columnLimit) {
if(entryColumns.length > MAX_COLUMNS_LIMIT) {
this.columnLimitExceeded = true;
leftEntryColumns = entryColumns.slice(0, this.columnLimit);
leftEntryColumns = entryColumns.slice(0, MAX_COLUMNS_LIMIT);
} else {
leftEntryColumns = entryColumns;
}
Expand Down

0 comments on commit 04dd60f

Please sign in to comment.