wip: table error
This commit is contained in:
parent
89d9394a0f
commit
da14011e5f
@ -591,6 +591,7 @@ function handleReplaceTextAndInsertTableRow(data: any) {
|
|||||||
const text = Payload.text
|
const text = Payload.text
|
||||||
const table = Payload.table
|
const table = Payload.table
|
||||||
const tableData: any[] = []
|
const tableData: any[] = []
|
||||||
|
if (table) {
|
||||||
for (const tab_obj of table) {
|
for (const tab_obj of table) {
|
||||||
tableData.push({
|
tableData.push({
|
||||||
location_bookmark_name: tab_obj.bookmarkName,
|
location_bookmark_name: tab_obj.bookmarkName,
|
||||||
@ -598,6 +599,7 @@ function handleReplaceTextAndInsertTableRow(data: any) {
|
|||||||
data: tab_obj.data,
|
data: tab_obj.data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sendMessageToWopiClient({
|
sendMessageToWopiClient({
|
||||||
MessageId: 'CallPythonScript',
|
MessageId: 'CallPythonScript',
|
||||||
SendTime: Date.now(),
|
SendTime: Date.now(),
|
||||||
@ -620,6 +622,7 @@ function handleReplaceTextAndInsertTableRowWithContentControl(data: any) {
|
|||||||
const text = Payload.text
|
const text = Payload.text
|
||||||
const table = Payload.table
|
const table = Payload.table
|
||||||
const tableData: any[] = []
|
const tableData: any[] = []
|
||||||
|
if (table) {
|
||||||
for (const tab_obj of table) {
|
for (const tab_obj of table) {
|
||||||
tableData.push({
|
tableData.push({
|
||||||
location_bookmark_name: tab_obj.bookmarkName,
|
location_bookmark_name: tab_obj.bookmarkName,
|
||||||
@ -627,6 +630,7 @@ function handleReplaceTextAndInsertTableRowWithContentControl(data: any) {
|
|||||||
data: tab_obj.data,
|
data: tab_obj.data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sendMessageToWopiClient({
|
sendMessageToWopiClient({
|
||||||
MessageId: 'CallPythonScript',
|
MessageId: 'CallPythonScript',
|
||||||
SendTime: Date.now(),
|
SendTime: Date.now(),
|
||||||
|
Loading…
Reference in New Issue
Block a user