fix outbox
This commit is contained in:
@@ -16,7 +16,7 @@ export function ChatToolView(chat: Chat) {
|
||||
});
|
||||
|
||||
function createItem() {
|
||||
chat.createObject({
|
||||
chat.addObjectAndSend({
|
||||
id: React.UUID(),
|
||||
title: "new item",
|
||||
});
|
||||
@@ -35,7 +35,7 @@ export function ChatToolView(chat: Chat) {
|
||||
<div class="chat-tool-view">
|
||||
<button on:click={createItem}>+</button>
|
||||
<hr></hr>
|
||||
<div children:append={[chat.objects, itemConverter]}></div>
|
||||
<div children:prepend={[chat.objects, itemConverter]}></div>
|
||||
|
||||
<div children:set={objectModal}></div>
|
||||
</div>
|
||||
|
||||
@@ -15,7 +15,8 @@ export function ItemDetailModal(
|
||||
|
||||
function saveAndClose() {
|
||||
object.title = editingTitle.value;
|
||||
chat.objects.set(object.id, object);
|
||||
|
||||
chat.addObjectAndSend(object);
|
||||
closeModal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user