init auth

This commit is contained in:
xds
2026-02-08 17:36:22 +03:00
parent 7732856f90
commit 6856449075
11 changed files with 473 additions and 68 deletions

View File

@@ -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