Skip to content

Turn on the tracking mode, create a new table, and when trying to delete rows, an error occurs. #846

@Antvictor

Description

@Antvictor

This issue is unique.

I have used thesearch tooland did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

onlyoffice/documentserver:latest

Expected Behavior

After selecting the entire table, rows can be deleted to remove the table.

Actual Behavior

Error occurs in the pop-up window when deleting rows after selecting the entire table.

Reproduction Steps

  1. open Track Changes
  2. create new table
  3. Select all the rows in the table, right-click and choose "Delete" -> Rows

docker log

[ERROR] [localhost] [] [] nodeJS - clientLog: changesError: Error: Uncaught TypeError: Cannot read properties of undefined (reading 'aa')
 Script: /9.2.1/sdkjs/word/sdk-all.js
 Line: 11238:440
 userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
 platform: MacIntel
 isLoadFullApi: true
 isDocumentLoadComplete: true
 DocumentInfo:
 Action: 98
 Selection: true
 performance.memory: {"totalJSHeapSize":234463475,"usedJSHeapSize":205479051,"jsHeapSizeLimit":4294967296}
 StackTrace: TypeError: Cannot read properties of undefined (reading 'aa')

console log

<div aria-expanded="true" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(227, 227, 227); font-family: monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgba(253, 252, 251, 0.1); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: monospace; white-space: pre-wrap; font-size: 11px !important; line-height: 1.2;"><span class="console-message-text" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(249, 222, 220) !important;">Uncaught <span class="object-value-error source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: monospace; white-space: pre-wrap; font-size: 11px !important; line-height: 1.2;"><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">TypeError: Cannot read properties of null (reading 'length')
<span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at y.aA (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all.js:11255:238" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all.js:11255:238</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at y.aA (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all.js:11138:340" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all.js:11138:340</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at y.aA (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all.js:10523:352" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all.js:10523:352</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at d.Yj (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all.js:1253:190" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all.js:1253:190</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at y.SCa (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all.js:10521:309" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all.js:10521:309</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at y.Mne [as 1_640] (<button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all-min.js:1369:314" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all-min.js:1369:314</button>)
</span><span class="formatted-stack-frame" style="box-sizing: border-box; min-width: 0px; min-height: 0px; display: block;">    at <button class="devtools-link text-button link-style" jslog="Link; context: script-location; track: click" role="link" tabindex="-1" title="https://api.docs.onlyoffice.com/9.2.1-c68d2a9a20d73174ad5c19f430bd6433/sdkjs/word/sdk-all-min.js:242:166" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font: inherit; color: rgb(168, 199, 250); text-decoration: underline; outline-offset: 2px; margin: 0px; height: unset; border: none; border-radius: 2px; padding: 0px !important; background: none; flex: 0 0 auto; white-space: nowrap; cursor: pointer; outline: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; word-break: break-all;">sdk-all-min.js:242:166</button></span></span></span></span></span></div><div class="" role="group" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(227, 227, 227); font-family: monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgba(253, 252, 251, 0.1); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="vbox flex-auto monospace stack-preview-container width-constrained" style="display: inline-block; width: 1611px; box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: monospace; font-size: 11px !important; position: relative; flex-direction: column !important; flex: 1 1 auto;"><div class="widget" style="box-sizing: border-box; min-width: 0px; min-height: 0px; position: relative; flex: 1 1 auto; contain: style;">
  | y.aA | @ | sdk-all.js:11255
-- | -- | -- | --
  | y.aA | @ | sdk-all.js:11138
  | y.aA | @ | sdk-all.js:10523
  | Yj | @ | sdk-all.js:1253
  | y.SCa | @ | sdk-all.js:10521
  | y.Mne | @ | sdk-all-min.js:1369
  | (anonymous) | @ | sdk-all-min.js:242
  | setTimeout |   |  
  | f.U0c | @ | sdk-all-min.js:242
  | e.U0c | @ | sdk-all-min.js:234
  | y.Pnc | @ | sdk-all-min.js:1368
  | y.rf | @ | sdk-all.js:10537
  | g.SOj | @ | sdk-all-min.js:1802
  | t.tableDeleteText | @ | code.js:2
  | Zt | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | g | @ | app.js:8
  | u | @ | app.js:8
  | c | @ | app.js:8
  | r.trigger | @ | app.js:8
  | onItemClick | @ | app.js:8
  | Zt | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | g | @ | app.js:8
  | u | @ | app.js:8
  | c | @ | app.js:8
  | r.trigger | @ | app.js:8
  | onItemClick | @ | app.js:8
  | Zt | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | (anonymous) | @ | app.js:8
  | dispatch | @ | app.js:8
  | f.handle | @ | app.js:8

</div></div></div>

At the same time, the same issue occurred when using the same operation in the document. This is all the information. Please help!

Metadata

Metadata

Assignees

Labels

waiting feedbackIssues that we waiting to be answered from author of issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions