Skip to content

Commit

Permalink
fix(ktable): dont clear visibility prefs on load (#2131)
Browse files Browse the repository at this point in the history
Fix a bug where visibility preferences were getting overridden by default value.
  • Loading branch information
kaiarrowood authored and adamdehaven committed Jun 15, 2024
1 parent 15a3700 commit ce4f4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KTable/KTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ const visibilityColumns = computed((): TableHeader[] => tableHeaders.value.filte
// visibility preferences from the host app (initialized by app)
const visibilityPreferences = computed((): Record<string, boolean> => props.tablePreferences.columnVisibility || {})
// current column visibility state
const columnVisibility = ref<Record<string, boolean>>({})
const columnVisibility = ref<Record<string, boolean>>(props.tablePreferences.columnVisibility || {})
const total = ref(0)
const isScrolled = ref(false)
const page = ref(1)
Expand Down

0 comments on commit ce4f4c6

Please sign in to comment.