fix: captain inbox modal shows wrong assistant data (#13302)
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user