fix: string replace optimization
This commit is contained in:
parent
796fb3ac88
commit
edaedd556b
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ function updateOverride (fields) {
|
||||||
const updatedFields = _.intersection(updateableFields, _.keys(fields))
|
const updatedFields = _.intersection(updateableFields, _.keys(fields))
|
||||||
const overrideFields = _.fromPairs(_.map(f =>
|
const overrideFields = _.fromPairs(_.map(f =>
|
||||||
_.endsWith('_path', f)
|
_.endsWith('_path', f)
|
||||||
? [`${_.replace('_path', '', f)}_override`, 'automatic']
|
? [`${_.replace('_path', '_override', f)}`, 'automatic']
|
||||||
: [`${f}_override`, 'automatic']
|
: [`${f}_override`, 'automatic']
|
||||||
, updatedFields))
|
, updatedFields))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue