Skip to content

Commit

Permalink
fix(KtStandardTable): validate against manual version if it's provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Isokaeder committed Jan 20, 2025
1 parent 7eeb35b commit 5c65115
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class LocalStorageAdapter implements KottiStandardTableStorage {
#validateVersionHash(columnIds: string[], version: string): boolean {
if (!version.startsWith(`${this.#storageKey}@`)) return false

const correctHash = simpleHash(columnIds)
const correctHash = this.#manualVersion ?? simpleHash(columnIds)
const givenHash = version.replace(`${this.#storageKey}@`, '')

return correctHash === givenHash
Expand Down

0 comments on commit 5c65115

Please sign in to comment.