Skip to content

Commit

Permalink
Merge pull request #190 from IMDA-BTG/fix/template-global-vars-overwr…
Browse files Browse the repository at this point in the history
…itten

fix template global vars overwritten

The requested reviews are Approved. Proceeded to merge PR to Main.
  • Loading branch information
imda-benedictlee authored Oct 6, 2023
2 parents 1571263 + bfbd990 commit a4ffde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai-verify-portal/src/modules/project/projectContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export function useProjectStore(
};
createProjectFromTemplateFn(project, templateId)
.then(async (doc: Partial<Project>) => {
const newGlobalVars = [];
const newGlobalVars = doc.globalVars || [];
for (const propertyName in doc.projectInfo) {
if (propertyName === '__typename') continue;
const gVarValue =
Expand Down

0 comments on commit a4ffde7

Please sign in to comment.