From 50922a319d4fcd49cdd8f265fc1e5d3de7d27587 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 19 Oct 2024 14:43:47 -0400 Subject: [PATCH] chore: small code change --- .../aurelia-slickgrid/src/custom-elements/aurelia-slickgrid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/aurelia-slickgrid/src/custom-elements/aurelia-slickgrid.ts b/packages/aurelia-slickgrid/src/custom-elements/aurelia-slickgrid.ts index 7c04bc34b..68b0fb6bf 100644 --- a/packages/aurelia-slickgrid/src/custom-elements/aurelia-slickgrid.ts +++ b/packages/aurelia-slickgrid/src/custom-elements/aurelia-slickgrid.ts @@ -1561,7 +1561,7 @@ export class AureliaSlickgridCustomElement { } protected suggestDateParsingWhenHelpful() { - if (!this.gridOptions.silenceWarnings && this.dataview?.getItemCount() > WARN_NO_PREPARSE_DATE_SIZE && !this.gridOptions.preParseDateColumns && this.grid.getColumns().some(c => isColumnDateType(c.type))) { + if (this.dataview?.getItemCount() > WARN_NO_PREPARSE_DATE_SIZE && !this.gridOptions.silenceWarnings && !this.gridOptions.preParseDateColumns && this.grid.getColumns().some(c => isColumnDateType(c.type))) { console.warn( '[Slickgrid-Universal] For getting better perf, we suggest you enable the `preParseDateColumns` grid option, ' + 'for more info visit => https://ghiscoding.gitbook.io/aurelia-slickgrid/column-functionalities/sorting#pre-parse-date-columns-for-better-perf'