Hold config state from the generated schedule; avoids desync issues when changing configs and re-exporting data without generating new schedule
This commit is contained in:
@@ -48,11 +48,10 @@
|
||||
}
|
||||
|
||||
async function export_file() {
|
||||
let config = rota.toDTO();
|
||||
let schedule = rota.solution;
|
||||
|
||||
try {
|
||||
await invoke("export", { config, schedule });
|
||||
await invoke("export", { schedule });
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user