fix: captain inbox modal shows wrong assistant data (#13302)

This commit is contained in:
Shivam Mishra
2026-01-19 18:31:46 +05:30
committed by GitHub
parent 7e4d93f649
commit 0346e9a2c7

View File

@@ -1,5 +1,5 @@
<script setup> <script setup>
import { computed, onMounted, ref, nextTick } from 'vue'; import { computed, watch, ref, nextTick } from 'vue';
import { useMapGetter, useStore } from 'dashboard/composables/store'; import { useMapGetter, useStore } from 'dashboard/composables/store';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { FEATURE_FLAGS } from 'dashboard/featureFlags'; import { FEATURE_FLAGS } from 'dashboard/featureFlags';
@@ -49,10 +49,14 @@ const handleCreateClose = () => {
selectedInbox.value = null; selectedInbox.value = null;
}; };
onMounted(() => watch(
store.dispatch('captainInboxes/get', { assistantId,
assistantId: assistantId.value, newId => {
}) store.dispatch('captainInboxes/get', {
assistantId: newId,
});
},
{ immediate: true }
); );
</script> </script>