Skip to content

Commit

Permalink
minor fix for micro plum
Browse files Browse the repository at this point in the history
- reset actually clears installed prerequisites
- manually reinstall a schema shouldn't show duplicated selected
eagleoflqj committed Jul 18, 2023
1 parent 70737af commit 14e8c41
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/micro-plum/DeployPane.vue
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ onMounted(async () => {
_selected = []
}
for (const schema of preSelectedSchemas.value) {
if (available.includes(schema)) {
if (available.includes(schema) && !_selected.includes(schema)) {
_selected.push(schema)
}
}
1 change: 1 addition & 0 deletions src/components/micro-plum/MicroPlum.vue
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ function showMicroPlum () {
}
async function onReset () {
installedPrerequisites.value = false
setLoading(true)
localStorage.removeItem('schemaId')
await resetUserDirectory()

0 comments on commit 14e8c41

Please sign in to comment.