mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
fix: prepr
This commit is contained in:
@@ -293,8 +293,7 @@ const props = withDefaults(
|
||||
)
|
||||
|
||||
const emit = defineEmits<{
|
||||
(e: 'update:modelValue', value: string[]): void
|
||||
(e: 'update:excludedPaths', value: string[]): void
|
||||
(e: 'update:modelValue' | 'update:excludedPaths', value: string[]): void
|
||||
(e: 'navigate', path: string): void
|
||||
}>()
|
||||
|
||||
@@ -698,20 +697,10 @@ function toggleAllVisible(selected: boolean) {
|
||||
const nextExcludedPaths = new Set(excludedPaths.value)
|
||||
|
||||
if (currentPath.value) {
|
||||
applySelection(
|
||||
nextSelectedPaths,
|
||||
nextExcludedPaths,
|
||||
currentPath.value,
|
||||
selected,
|
||||
)
|
||||
applySelection(nextSelectedPaths, nextExcludedPaths, currentPath.value, selected)
|
||||
} else {
|
||||
for (const entry of visibleSelectableEntries.value) {
|
||||
applySelection(
|
||||
nextSelectedPaths,
|
||||
nextExcludedPaths,
|
||||
entry.path,
|
||||
selected,
|
||||
)
|
||||
applySelection(nextSelectedPaths, nextExcludedPaths, entry.path, selected)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user