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