Skip to content

Commit e77b358

Browse files
committed
Fix basic example
1 parent 48c39ad commit e77b358

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/examples/tree/BasicExample.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<vscode-tree id="basic-example"></vscode-tree>
1+
<vscode-tree id="tree-basic-example"></vscode-tree>
22
<script>
33
document.addEventListener("DOMContentLoaded", () => {
4-
const tree = document.querySelector("#basic-example");
4+
const tree = document.querySelector("#tree-basic-example");
55
const icons = {
66
branch: "folder",
77
leaf: "file",

src/content/components/tree.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import DecorationsExample from "@components/examples/tree/DecorationsExample.ast
1717
<BasicExample />
1818
<Fragment slot="html">
1919
```html
20-
<vscode-tree id="basic-example"></vscode-tree>
20+
<vscode-tree id="tree-basic-example"></vscode-tree>
2121
```
2222
</Fragment>
2323
<Fragment slot="js">
2424
```javascript
25-
const tree = document.querySelector('#basic-example');
25+
const tree = document.querySelector('#tree-basic-example');
2626
const icons = {
2727
branch: 'folder',
2828
leaf: 'file',

0 commit comments

Comments
 (0)