fix(core.gbapp): Fix KeepText bug.

This commit is contained in:
Rodrigo Rodriguez 2020-12-10 18:38:15 -03:00
parent 9083c3e5dc
commit 8a82eade5a

View file

@ -819,10 +819,10 @@ export class GBMinService {
// Spells check the input text before translating, // Spells check the input text before translating,
// keeping fixed tokens as specified in Config. // keeping fixed tokens as specified in Config.
const keepText: string = min.core.getParam<string>( const keepText: string = min.core.getParam(
min.instance, min.instance,
'Keep Text', 'Keep Text',
null ''
); );
let keepTextList = []; let keepTextList = [];
@ -841,6 +841,7 @@ export class GBMinService {
}); });
if (keepTextList) { if (keepTextList) {
keepTextList = keepTextList.filter(p => p.trim() !== '');
let i = 0; let i = 0;
await CollectionUtil.asyncForEach(keepTextList, item => { await CollectionUtil.asyncForEach(keepTextList, item => {