From 372d60cf3b4917cefd3f6bb59f9ae5c766f14e36 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 18 Feb 2020 13:19:29 +0100 Subject: Fix tabulator options handling for initials. --- .../src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision') diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt index 66337568..77b09810 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Options.kt @@ -783,10 +783,10 @@ fun TabulatorOptions.toJs( if (ajaxLoader != null) this.ajaxLoader = ajaxLoader if (ajaxLoaderLoading != null) this.ajaxLoaderLoading = i18nTranslator(ajaxLoaderLoading) if (ajaxLoaderError != null) this.ajaxLoaderError = i18nTranslator(ajaxLoaderError) - if (initialSort != null) this.initialSort = initialSort + if (initialSort != null) this.initialSort = initialSort.toTypedArray() if (sortOrderReverse != null) this.sortOrderReverse = sortOrderReverse - if (initialFilter != null) this.initialFilter = initialFilter - if (initialHeaderFilter != null) this.initialHeaderFilter = initialHeaderFilter + if (initialFilter != null) this.initialFilter = initialFilter.toTypedArray() + if (initialHeaderFilter != null) this.initialHeaderFilter = initialHeaderFilter.toTypedArray() if (pagination != null) this.pagination = pagination.mode if (paginationSize != null) this.paginationSize = paginationSize if (paginationSizeSelector != null) this.paginationSizeSelector = paginationSizeSelector -- cgit