Skip to content

Commit 8c718a6

Browse files
committed
refactor(config): use assign to keep ref
1 parent 4030e4d commit 8c718a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • packages/ionic/src/commands/config

packages/ionic/src/commands/config/get.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ export class ConfigGetCommand extends Command {
4646
}
4747

4848
sanitize(key: string, obj: any) {
49+
const lodash = this.env.load('lodash');
50+
4951
if (typeof obj === 'object' && 'tokens' in obj) {
5052
obj['tokens'] = this.scrubTokens(obj['tokens']);
5153
}
5254

5355
if (key === 'tokens') {
54-
obj = this.scrubTokens(obj);
56+
lodash.assign(obj, this.scrubTokens(obj));
5557
}
5658
}
5759

0 commit comments

Comments
 (0)