From 2736738c361d454b61670bda7951f79fdb2eb711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Mon, 15 Jul 2019 18:26:23 +0200 Subject: [PATCH] Fix @Tirokk's suggestions Wow @Tirokk that was a good catch! I thought that the emitting side knows the `index`, but no, it only emits `removePostFromList` and that's it. In order to delete the right post, we have to pass in the `index` ourselves. So, the caller of the function is the page component itself. I didn't see the error myself, because in Javascript if you parse `undefined` or `null` as Integer, you get 0 and it does not raise an error. --- webapp/pages/profile/_id/_slug.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue index 9026116cb..6c8be8661 100644 --- a/webapp/pages/profile/_id/_slug.vue +++ b/webapp/pages/profile/_id/_slug.vue @@ -202,11 +202,11 @@