mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-06 07:53:54 +00:00
fix: update data in background rundowns
This commit is contained in:
committed by
Carlos Valente
parent
0f83ceaf01
commit
af1da58718
@@ -499,7 +499,7 @@ export async function editCustomField(
|
||||
if (rundownId !== rundown.id) {
|
||||
const backgroundRundown = structuredClone(projectRundowns[rundownId]);
|
||||
customFieldMutation.renameUsages(backgroundRundown, oldKey, newKey);
|
||||
updateBackgroundRundown(rundown.id, backgroundRundown);
|
||||
updateBackgroundRundown(rundownId, backgroundRundown);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -539,7 +539,7 @@ export async function deleteCustomField(key: CustomFieldKey, projectRundowns: Pr
|
||||
if (rundownId !== rundown.id) {
|
||||
const backgroundRundown = structuredClone(projectRundowns[rundownId]);
|
||||
customFieldMutation.removeUsages(backgroundRundown, key);
|
||||
updateBackgroundRundown(rundown.id, backgroundRundown);
|
||||
updateBackgroundRundown(rundownId, backgroundRundown);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user