Skip to content

Commit

Permalink
fix(core.gbapp): Fix KeepText bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 10, 2020
1 parent 9083c3e commit 8a82ead
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,10 @@ export class GBMinService {
// Spells check the input text before translating,
// keeping fixed tokens as specified in Config.

const keepText: string = min.core.getParam<string>(
const keepText: string = min.core.getParam(
min.instance,
'Keep Text',
null
''
);

let keepTextList = [];
Expand All @@ -841,6 +841,7 @@ export class GBMinService {
});

if (keepTextList) {
keepTextList = keepTextList.filter(p => p.trim() !== '');
let i = 0;
await CollectionUtil.asyncForEach(keepTextList, item => {

Expand Down

0 comments on commit 8a82ead

Please sign in to comment.