fix: route params not reacting to changes (#11651)

This commit is contained in:
Shivam Mishra
2025-06-02 13:57:42 +05:30
committed by GitHub
parent 4061f99114
commit 8fa039e1c5
2 changed files with 6 additions and 9 deletions

View File

@@ -1,4 +1,6 @@
<script setup>
import { computed } from 'vue';
const { row } = defineProps({
row: {
type: Object,
@@ -6,10 +8,10 @@ const { row } = defineProps({
},
});
const routerParams = {
const routerParams = computed(() => ({
name: 'inbox_conversation',
params: { conversation_id: row.original.conversationId },
};
}));
</script>
<template>

View File

@@ -90,6 +90,7 @@ const columns = [
const [ratingObject = {}] = CSAT_RATINGS.filter(
rating => rating.value === giveRating
);
return h(
'span',
{
@@ -109,13 +110,7 @@ const columns = [
columnHelper.accessor('conversationId', {
header: '',
width: 100,
cell: cellProps => {
const { row } = cellProps;
return h(ConversationCell, {
key: row.original.conversationId,
row,
});
},
cell: cellProps => h(ConversationCell, cellProps),
}),
];