diff --git a/src/extensions/cookie/bootstrap-table-cookie.js b/src/extensions/cookie/bootstrap-table-cookie.js index e00cdb7e51..e44d10c0bb 100644 --- a/src/extensions/cookie/bootstrap-table-cookie.js +++ b/src/extensions/cookie/bootstrap-table-cookie.js @@ -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) {