Skip to content

Commit b1ebf17

Browse files
authored
Merge pull request #884 from bcgov/ccfri-6585-application-template-bug
CCFRI-6585 - fix bug missing application template in application record
2 parents 93405f4 + 84f5331 commit b1ebf17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/store/ccof/organization.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export const useOrganizationStore = defineStore('organization', {
5656

5757
const payload = {
5858
...this.organizationModel,
59-
applicationTemplateVersion: appStore.getApplicationTemplateVersion(applicationStore.programYearId),
6059
};
6160
payload.providerType = this.getOrgProviderTypeID;
6261
//update the loaded model here before the same, otherwise errors will prevent you from leaving the page
@@ -77,6 +76,7 @@ export const useOrganizationStore = defineStore('organization', {
7776
//we calculate which app to use in lookup - no need to do it again here
7877
const programYear = appStore.programYearList.newApp;
7978
payload.programYearId = programYear.programYearId;
79+
payload.applicationTemplateVersion = appStore.getApplicationTemplateVersion(programYear.programYearId);
8080
applicationStore.setProgramYearId(programYear.programYearId);
8181
applicationStore.setProgramYearLabel(programYear.name);
8282
try {

0 commit comments

Comments
 (0)