Skip to content

Commit

Permalink
Merge pull request #7002 from wenzhixin/fix/6916
Browse files Browse the repository at this point in the history
fix/6916
  • Loading branch information
wenzhixin authored Oct 4, 2023
2 parents d8ce185 + a20ba81 commit e998989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/cookie/bootstrap-table-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
this.options.searchText = searchTextCookie ? searchTextCookie : ''
}
// cardView
this.options.cardView = cardViewCookie === 'true' ? cardViewCookie : false
if (cardViewCookie !== null) {
this.options.cardView = cardViewCookie === 'true' ? cardViewCookie : false
}

if (hiddenColumnsCookie) {
for (const column of this.columns) {
Expand Down

0 comments on commit e998989

Please sign in to comment.