fix bug where drag&drop would not create new object versions
This commit is contained in:
@@ -108,8 +108,9 @@ function KanbanBoardView(
|
||||
const messageObject = chat.objects.value.get(id);
|
||||
if (!messageObject) return;
|
||||
|
||||
const latest = chat.getMostRecentContent(messageObject);
|
||||
latest.categoryName = kanbanBoard.category;
|
||||
const newContent = chat.createObjectContent();
|
||||
newContent.categoryName = kanbanBoard.category;
|
||||
chat.updateObjectContent(messageObject, newContent);
|
||||
chat.addObjectAndSend(messageObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -230,9 +230,10 @@ function StatusColumnView(
|
||||
const messageObject = chat.objects.value.get(id);
|
||||
if (!messageObject) return;
|
||||
|
||||
const latest = chat.getMostRecentContent(messageObject);
|
||||
latest.status = status;
|
||||
latest.categoryName = category;
|
||||
const newContent = chat.createObjectContent();
|
||||
newContent.categoryName = category;
|
||||
newContent.status = status;
|
||||
chat.updateObjectContent(messageObject, newContent);
|
||||
chat.addObjectAndSend(messageObject);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user