mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 12:29:10 +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);
|
const keyFromLabel = customFieldLabelToKey(field.label);
|
||||||
//Test label and key cohesion, but allow old lowercased keys to stay
|
//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;
|
const key = originalKey.toLocaleLowerCase() === keyFromLabel.toLocaleLowerCase() ? originalKey : keyFromLabel;
|
||||||
if (key in newCustomFields) {
|
if (key in newCustomFields) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user