Skip to content

Commit

Permalink
修正一个报错;尝试打包map文件
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 13, 2024
1 parent ab2b985 commit 889692c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.gitignore
**/tsconfig.json
**/.eslintrc.json
**/*.map
.github/
tmp/
src/
Expand Down
2 changes: 1 addition & 1 deletion src/editorTable/editorData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ interface KVShape {
function fromKV(kvMap: Record<string, KVShape>): KV {
let result: Record<string, string|number|boolean> = {};
// 按照 sort 字段的值排序,然后将重新组成 { K: V.value } 的形式
let kvList = Object.values(kvMap).sort((a, b) => Number(a.sort - b.sort));
let kvList = Object.values(kvMap).sort((a, b) => Number(a.sort) - Number(b.sort));
for (let kv of kvList) {
result[kv.key] = kv.value;
}
Expand Down

0 comments on commit 889692c

Please sign in to comment.