fix: seed labels before foods in setup wizard to prevent race condition (#7429)

Co-authored-by: xenov <redacted>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Xenov
2026-04-14 17:24:32 +01:00
committed by GitHub
parent e6368174f0
commit f8d08c6785

View File

@@ -457,13 +457,8 @@ async function seedData() {
return;
}
const tasks = [
seedFoods(),
seedUnits(),
seedLabels(),
];
await Promise.all(tasks);
await seedLabels();
await Promise.all([seedFoods(), seedUnits()]);
}
async function submitCommonSettings() {