add individual library scanning
This commit is contained in:
@@ -286,7 +286,10 @@ function AddLibraryForm({ onAdded }: { onAdded: () => void }) {
|
||||
return
|
||||
}
|
||||
|
||||
// Success — reset form
|
||||
// Success — fire scan for the new library (fire-and-forget)
|
||||
void fetch(`/api/scan/${encodeURIComponent((data as { id: string }).id)}`, { method: 'POST' })
|
||||
|
||||
// Reset form
|
||||
setName('')
|
||||
setLibPath('')
|
||||
setType('games')
|
||||
|
||||
Reference in New Issue
Block a user