Skip to content

Commit 21a643c

Browse files
authored
fix detection of conversation data change (#2380)
1 parent d1dfaa0 commit 21a643c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Frontend/src/stores/SequenceDiagramStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ export const useSequenceDiagramStore = defineStore("SequenceDiagramStore", () =>
4343
const selectedId = computed(() => `${state.value.data.message_type ?? ""}(${state.value.data.id})`);
4444

4545
watch(
46-
() => conversationData,
46+
() => conversationData.value.data,
4747
(conversationData) => {
48-
if (conversationData.value.data.length) {
48+
if (conversationData.length) {
4949
startX.value = Endpoint_Width / 2;
50-
const model = new ModelCreator(conversationData.value.data);
50+
const model = new ModelCreator(conversationData);
5151
endpoints.value = model.endpoints;
5252
handlers.value = model.handlers;
5353
routes.value = model.routes;

0 commit comments

Comments
 (0)