Commit bef40218 authored by antoine masson's avatar antoine masson
Browse files

v1.12

Fix poc empty in surveymodel
parent a5736fac
......@@ -250,7 +250,7 @@ SurveySchema.virtual('poc').get(async function() {
let poc = this.general.poc
if (this.general.poc.useglobal){
const opt = await GlobalOptions.findById(0,{poc:1});
if(opt.poc){
if(opt&&opt.poc){
poc = opt.poc;
} else {
poc = null
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment