diff --git a/public/js/components/searchbar/result/prestudent.js b/public/js/components/searchbar/result/prestudent.js index ba647e865..7852bbe57 100644 --- a/public/js/components/searchbar/result/prestudent.js +++ b/public/js/components/searchbar/result/prestudent.js @@ -18,7 +18,7 @@ export default { }, photo_url() { if (this.mode != 'simple') - return this.photo_url; + return this.res.photo_url; if (this.res.foto) return 'data:image/jpeg;base64,' + this.res.foto; return null; diff --git a/public/js/components/searchbar/result/student.js b/public/js/components/searchbar/result/student.js index 13354b818..1d6eb2a61 100644 --- a/public/js/components/searchbar/result/student.js +++ b/public/js/components/searchbar/result/student.js @@ -13,7 +13,7 @@ export default { computed: { photo_url() { if (this.mode != 'simple') - return this.photo_url; + return this.res.photo_url; if (this.res.foto) return 'data:image/jpeg;base64,' + this.res.foto; return null;