Skip to content

Commit

Permalink
Fix table editor column detections
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephAbbey committed May 24, 2024
1 parent a7e613c commit 79aaf52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scratch-vhdl-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"publisher": "JosephAbbey",
"displayName": "Scratch VHDL",
"description": "",
"version": "1.0.3",
"version": "1.0.4",
"license": "MIT",
"engines": {
"vscode": "^1.75.0"
Expand Down Expand Up @@ -131,4 +131,4 @@
"@vscode/webview-ui-toolkit": "^1.2.2",
"blockly": "^10.1.3"
}
}
}
2 changes: 1 addition & 1 deletion scratch-vhdl-vscode/src/webview/TableEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function TableEditor<
const tr_td_input = document.createElement('input');
tr_td.appendChild(tr_td_input);
tr.appendChild(tr_td);
for (let i = 0; i < Object.values(rows)[0].length; i++) {
for (let i = 0; i < cols.length - 1; i++) {
const td = document.createElement('td');
const td_input = document.createElement('input');
td.appendChild(td_input);
Expand Down

0 comments on commit 79aaf52

Please sign in to comment.