refac: accept legacy 'citation' type
This commit is contained in:
@@ -216,7 +216,7 @@
|
|||||||
} else {
|
} else {
|
||||||
message.statusHistory = [data];
|
message.statusHistory = [data];
|
||||||
}
|
}
|
||||||
} else if (type === 'source') {
|
} else if (type === 'source' || type === 'citation') {
|
||||||
if (data?.type === 'code_execution') {
|
if (data?.type === 'code_execution') {
|
||||||
// Code execution; update existing code execution by ID, or add new one.
|
// Code execution; update existing code execution by ID, or add new one.
|
||||||
if (!message?.code_executions) {
|
if (!message?.code_executions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user