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

View File

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