From 269c662c51fdd1f4bf613c8de1c002ea082a5c1c Mon Sep 17 00:00:00 2001 From: __joeburke Date: Thu, 28 Apr 2022 16:46:36 +0100 Subject: [PATCH] fix: ensure sorting option reads prop correctly --- src/components/filterable-table/FilterableTable.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/filterable-table/FilterableTable.vue b/src/components/filterable-table/FilterableTable.vue index bef2b97..98c36b8 100644 --- a/src/components/filterable-table/FilterableTable.vue +++ b/src/components/filterable-table/FilterableTable.vue @@ -247,7 +247,7 @@ export default { const defaultOptionsToMerge = Object.prototype.hasOwnProperty.call(providedOptions, 'columns') ? defaultOptionsWithoutColumns : DEFAULT_OPTIONS - const options = { ...merge(providedOptions, defaultOptionsToMerge) } + const options = merge(defaultOptionsToMerge, providedOptions) const obj = { tableId: this.id, options