Skip to content

Commit d8eca46

Browse files
committed
feat: bump version to 1.0.1 and enhance root selection handling in App.vue
1 parent b28fdb9 commit d8eca46

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "JSON Pilot",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "Take control of your JSON data with powerful viewing tools.",
66
"author": "7 Angle <hello@7angle.com> (https://7angle.com)",
77
"permissions": [

src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ const handleNodeSelect = async (paths) => {
130130
value = value[key]
131131
}
132132
133+
// If it's a root selection (empty path), return the value directly
134+
if (pathSegments.length === 0) {
135+
return value
136+
}
137+
133138
let current = acc
134139
for (let i = 0; i < pathSegments.length - 1; i++) {
135140
const key = pathSegments[i]

0 commit comments

Comments
 (0)