mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
todo note about sanitiseCustomFields (#1281)
This commit is contained in:
committed by
GitHub
parent
42984eed87
commit
a5496434f8
@@ -322,6 +322,7 @@ export function sanitiseCustomFields(data: object): CustomFields {
|
||||
|
||||
const keyFromLabel = customFieldLabelToKey(field.label);
|
||||
//Test label and key cohesion, but allow old lowercased keys to stay
|
||||
//TODO: the `toLocaleLowerCase` part here is to conserve keys from old projects and could be removed at some point (okt. 2024)
|
||||
const key = originalKey.toLocaleLowerCase() === keyFromLabel.toLocaleLowerCase() ? originalKey : keyFromLabel;
|
||||
if (key in newCustomFields) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user