@byu-oit/vue-decision-processing-components 9.5.1 → 9.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Report.vue +7 -6
  2. package/package.json +1 -1
package/Report.vue CHANGED
@@ -143,7 +143,8 @@ export default {
143
143
  },
144
144
  computed: {
145
145
  ...mapState({
146
- institution: state => state.ui.institution
146
+ institution: state => state.ui.institution,
147
+ env: state => state.environment
147
148
  }),
148
149
  metadata () {
149
150
  return this.$store.getters.reportMetadata(this.reportName)
@@ -190,8 +191,8 @@ export default {
190
191
  }
191
192
  // appends institution if available to url search params
192
193
  if(this.metadata.parameters.includes('institutions')) {
193
- if(this.metadata.parameters.institutions.includes(state.institution))
194
- q.append('institution', state.institution)
194
+ if(this.metadata.parameters.institutions.includes(this.institution))
195
+ q.append('institution', this.institution)
195
196
  }
196
197
 
197
198
  const url = this.baseUrl + '?' + q.toString()
@@ -295,8 +296,8 @@ export default {
295
296
  }
296
297
  // appends institution if available to url search params
297
298
  if(this.metadata.parameters.includes('institutions')) {
298
- if(this.metadata.parameters.institutions.includes(state.institution))
299
- q.append('institution', state.institution)
299
+ if(this.metadata.parameters.institutions.includes(this.institution))
300
+ q.append('institution', this.institution)
300
301
  }
301
302
  return q
302
303
  },
@@ -305,7 +306,7 @@ export default {
305
306
  const base = this.env === 'development'
306
307
  ? 'https://api-sandbox.byu.edu'
307
308
  : 'https://api.byu.edu'
308
- const institution = state.institution
309
+ const institution = this.institution
309
310
  const response = await fetch(`${base}/domain/applications/${institution}/admission/v1/configs`)
310
311
  const json = await response.json()
311
312
  this.configs = [...json.closed, ...json.open]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.5.1",
3
+ "version": "9.5.2",
4
4
  "description": "Vue components shared between decision processing systems for the CES schools.",
5
5
  "dependencies": {
6
6
  "@fortawesome/fontawesome-free": "^5.15.4",