Skip to content

Commit

Permalink
fix subscription to settings change
Browse files Browse the repository at this point in the history
  • Loading branch information
smoya committed May 30, 2023
1 parent 2f6c59c commit 768b01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ export class ParserService extends AbstractService {
}

private async subscribeToSettings() {
settingsState.subscribe((state, prevState) => async () => {
settingsState.subscribe((state, prevState) => {
if (isDeepEqual(state.governance, prevState.governance)) return;

const { files } = filesState.getState();
for (const [uri, file] of Object.entries(files)) {
await this.parse(uri, file.content);
this.parse(uri, file.content);
}
});
}
Expand Down

0 comments on commit 768b01c

Please sign in to comment.