Skip to content

Commit

Permalink
refactor: editable
Browse files Browse the repository at this point in the history
  • Loading branch information
xz8la8 committed May 19, 2021
1 parent 437ed81 commit ee429b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sula/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sula",
"version": "1.2.0-beta.60",
"version": "1.2.0-beta.61",
"module": "./es/index.js",
"main": "./es/index.js",
"types": "./es/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/sula/src/_util/NameListMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class NameListMap<T extends Array<any>, K> {
}

public getByValue(value: K): T | null {
for(let i = 0, len = this.list.length; i <= len; i += 1) {
for(let i = 0, len = this.list.length; i < len; i += 1) {
const listItem = this.list[i];
if(matchNameList(value, listItem.value)) {
return listItem.nameList;
Expand Down

0 comments on commit ee429b0

Please sign in to comment.