init auth
This commit is contained in:
@@ -365,9 +365,9 @@ const deleteGeneration = async (gen) => {
|
||||
// or we need a way to delete the generation record.
|
||||
// The user said "delete asset", and these are likely linked.
|
||||
// If gen has a result list, we delete the first asset.
|
||||
if (gen.result_list && gen.result_list.length > 0) {
|
||||
await dataService.deleteAsset(gen.result_list[0])
|
||||
}
|
||||
|
||||
await dataService.deleteGeneration(gen.id)
|
||||
|
||||
} catch (e) {
|
||||
console.error('Failed to delete generation', e)
|
||||
// Reload to restore state if failed
|
||||
|
||||
Reference in New Issue
Block a user