From 819ef7bc3220f361869d1cd9cf46e986bcfd6f71 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Mon, 23 Jun 2025 10:48:50 +0200 Subject: [PATCH] Bugfix this => this.res --- public/js/components/searchbar/result/prestudent.js | 2 +- public/js/components/searchbar/result/student.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;