Skip to content

Commit 31f6203

Browse files
committed
use string key
1 parent f69ce90 commit 31f6203

File tree

1 file changed

+3
-3
lines changed
  • frameworks/keyed/million/src

1 file changed

+3
-3
lines changed

frameworks/keyed/million/src/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ const select = (id) => {
132132
const block = main.children.find((block) => block.props.id === id);
133133
const row = Row(
134134
{
135-
id: block.props.id,
135+
id,
136136
label: block.props.label,
137137
className: 'danger',
138138
},
139-
id
139+
String(id)
140140
);
141141
row.memo = [block.props.label, true];
142142
block.patch(row);
@@ -148,7 +148,7 @@ const select = (id) => {
148148
label: prevBlock.props.label,
149149
className: '',
150150
},
151-
prevBlock.props.id
151+
String(prevBlock.props.id)
152152
);
153153
row.memo = [prevBlock.props.label, false];
154154
prevBlock.patch(row);

0 commit comments

Comments
 (0)