Skip to content

Commit

Permalink
fix: stop trying to update a const
Browse files Browse the repository at this point in the history
  • Loading branch information
monodot committed Jan 11, 2025
1 parent 4f30eb1 commit 7983fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ImportDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ watch(jsonInput, (newValue) => {
}
// Convert single object to array
const resources = Array.isArray(parsed) ? parsed : [parsed];
let resources = Array.isArray(parsed) ? parsed : [parsed];
// If it's a List kind, use its items
if (parsed.kind === 'List' && Array.isArray(parsed.items)) {
Expand Down Expand Up @@ -78,7 +78,7 @@ const handleSubmit = () => {
parsed = parseYAML(jsonInput.value);
}
const resources = Array.isArray(parsed) ? parsed : [parsed];
let resources = Array.isArray(parsed) ? parsed : [parsed];
if (parsed.kind === 'List' && Array.isArray(parsed.items)) {
resources = parsed.items;
}
Expand Down

0 comments on commit 7983fb9

Please sign in to comment.