Skip to content

Commit

Permalink
refact(data): tweak dimension hash generation
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jul 23, 2021
1 parent e252249 commit 9d6c597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/helper/sourceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) {
for (let i = 0; i < dims.length; i++) {
const ordinalMeta = dims[i].ordinalMeta;
key += dims[i].name;
key += '$';
key += dimTypeShort[dims[i].type] || 'f';
if (ordinalMeta) {
let id = ordinalIdMap.get(ordinalMeta);
Expand All @@ -538,7 +539,7 @@ function generateDimensionsHash(dims: DataStorageDimensionDefine[]) {
}
key += id;
}
key += '$$';
key += '$';
}
return key;
}

0 comments on commit 9d6c597

Please sign in to comment.