Skip to content

Commit

Permalink
RA-1800 Obs Across Encounter widget broken (openmrs#356)
Browse files Browse the repository at this point in the history
https://issues.openmrs.org/browse/RA-1800

Fixes a typo which caused ObsAcrossEncounter not to work
  • Loading branch information
brandones authored Sep 15, 2020
1 parent c8db82c commit cb1d4b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ Provides apps for performing the common tasks

# Development

As usual, you can just use `mvn openmrs-sdk:watch` for development.
Hot reloading changes is supported. Use the following three commands:

However, in order to see changes to `scss` files, you'll also need to run
`mvn process-resources -Pwatch-sass`.
```
mvn openmrs-sdk:watch
mvn process-resources -Pwatch-sass
npm run watch
```

## Dashboard Widgets

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ export default class ObsAcrossEncountersController {
}

fetchEncounters() {
const encounterTypes = this.config.encounterTypes ? this.config.encounterType.split(',').map(c => c.trim()) : [];
const encounterTypes = this.config.encounterTypes ? this.config.encounterTypes.split(',').map(c => c.trim()) : [];
const legacyEncounterTypes = this.config.encounterType ? this.config.encounterType.split(',').map(c => c.trim()) : [];
encounterTypes.push(...legacyEncounterTypes);

const encounterPromises = encounterTypes.map(e =>
this.openmrsRest.get("encounter", {
patient: this.config.patientUuid,
Expand Down

0 comments on commit cb1d4b4

Please sign in to comment.