mishig HF Staff commited on
Commit
f00cd98
·
1 Parent(s): e61727f
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -68,12 +68,9 @@
68
  msg.content = value;
69
  const { role } = msg;
70
  if (messageIdx === lastMsgIdx && role === 'user') {
71
- conversations = conversations.map((conversation) => {
72
- conversation.messages[messageIdx].content = value;
73
- return conversation;
74
- });
75
  }
76
- conversations = conversations;
77
  }
78
 
79
  function deleteAndGetItem<T>(array: T[], index: number) {
 
68
  msg.content = value;
69
  const { role } = msg;
70
  if (messageIdx === lastMsgIdx && role === 'user') {
71
+ conversation.messages[messageIdx].content = value;
 
 
 
72
  }
73
+ conversation = conversation;
74
  }
75
 
76
  function deleteAndGetItem<T>(array: T[], index: number) {