diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js index a3d337f0..1b1d801a 100644 --- a/ayanova/src/api/gzmenu.js +++ b/ayanova/src/api/gzmenu.js @@ -298,11 +298,16 @@ export default { case "review": //go to list // path: "/home-reviews/:objectType?/:objectId?", + let objName = null; + if (vm && vm.obj && vm.obj.name) { + objName = vm.obj.name; + } vm.$router.push({ name: "home-reviews", params: { - objectType: item.data.ayaType, - objectId: item.data.recordId + objectType: Number.parseInt(item.data.ayaType), + objectId: Number.parseInt(item.data.recordId), + name: objName } }); break; diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index c95d8dc1..85994d15 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -348,6 +348,7 @@ export default { iconForType: function(ayaType) { switch (ayaType) { case window.$gz.type.NoType: + case null: return "$ayiGenderless"; case window.$gz.type.Global: return "$ayiGlobe"; diff --git a/ayanova/src/views/home-review.vue b/ayanova/src/views/home-review.vue index 158adde0..cd7e9471 100644 --- a/ayanova/src/views/home-review.vue +++ b/ayanova/src/views/home-review.vue @@ -4,6 +4,7 @@