Undo operation in table deletes the entire column

Column resize, following an undo deletes the entire column.

  1. Paste a text larger than current column width in a table’s first column, bottom row
  2. Undo (Ctrl/Cmd-Z)
  3. The entire column will get deleted

further fiddling will have further errative behavior, corruption

2024-06-14 14.42.21

Also noted

app.js:1 RangeError: Invalid change range 0 to 5 (in doc of length 0)
    at e (app.js:1:264350)
    at e (app.js:1:264093)
    at t.of (app.js:1:264597)
    at t.applyCellUpdates (app.js:1:1316551)
    at t.reconcileChanges (app.js:1:1315501)
    at t.receiveUpdate (app.js:1:1315936)
    at X (app.js:1:1588755)
    at u (app.js:1:1592149)
    at e.update [as updateF] (app.js:1:1592628)
    at Object.update (app.js:1:275020)
    at e.computeSlot (app.js:1:285870)
    at Ve (app.js:1:278964)
    at new e (app.js:1:284839)
    at e.applyTransaction (app.js:1:285825)
    at e.get (app.js:1:280968)
    at e.update (app.js:1:442592)
    at e.dispatchTransactions (app.js:1:440219)
    at e.dispatch (app.js:1:442207)
    at app.js:1:672396
    at h (app.js:1:1418848)
    at d (app.js:1:459459)
    at Jo (app.js:1:459704)
    at Object.keydown (app.js:1:457184)
    at app.js:1:375555
    at e.runHandlers (app.js:1:373611)
    at e.handleEvent (app.js:1:373373)

1. List item

2 Likes

Thanks, can you please follow the bug report template next time?

Thanks!

I’m also running into something similar :blush:

I wanted to see how the following table would look like if I inserted a line break between the date and time parts of the columns Start time and End time so I began doing just that …

| Segment    | Start time          | End time            | Duration       |
| ---------- | ------------------- | ------------------- | -------------- |
| Berserk 01 |                     |                     | 1h 33m 42s     |
| 164 > 224  | 2024-05-22 11:55:01 | 2024-05-22 12:12:23 | 17m 22s        |
| 109 > 164  | 2024-05-22 11:11:18 | 2024-05-22 11:29:35 | 18m 17s        |
| 046 > 109  | 2024-05-22 10:38:02 | 2024-05-22 11:06:43 | 28m 41s        |
| 036 > 046  | 2024-05-22 10:27:19 | 2024-05-22 10:33:17 | 5m 58s         |
| 000 > 036  | 2024-05-22 00:33:16 | 2024-05-22 00:56:40 | 23m 24s        |
| **Total**  |                     |                     | **1h 33m 42s** |

I started with the column Start time only :

| Segment    | Start time              | End time            | Duration       |
| ---------- | ----------------------- | ------------------- | -------------- |
| Berserk 01 |                         |                     | 1h 33m 42s     |
| 164 > 224  | 2024-05-22 <br>11:55:01 | 2024-05-22 12:12:23 | 17m 22s        |
| 109 > 164  | 2024-05-22 <br>11:11:18 | 2024-05-22 11:29:35 | 18m 17s        |
| 046 > 109  | 2024-05-22 <br>10:38:02 | 2024-05-22 11:06:43 | 28m 41s        |
| 036 > 046  | 2024-05-22 <br>10:27:19 | 2024-05-22 10:33:17 | 5m 58s         |
| 000 > 036  | 2024-05-22 <br>00:33:16 | 2024-05-22 00:56:40 | 23m 24s        |
| **Total**  |                         |                     | **1h 33m 42s** |

But I didn’t like the result so I hit Cmd + Z, hoping to get back to where I was before adding the line breaks … but once I got to the very last Undo, this is what I saw in Live Preview:

Undo Table

The strange thing is that I don’t necessarily see corruption and I get different results depending if I’m in LP or Reading:

In Source, the table appears normal:

#### Test 1

| Segment    | Start time          | End time            | Duration       |
| ---------- | ------------------- | ------------------- | -------------- |
| Berserk 01 |                     |                     | 1h 33m 42s     |
| 164 > 224  | 2024-05-22 11:55:01 | 2024-05-22 12:12:23 | 17m 22s        |
| 109 > 164  | 2024-05-22 11:11:18 | 2024-05-22 11:29:35 | 18m 17s        |
| 046 > 109  | 2024-05-22 10:38:02 | 2024-05-22 11:06:43 | 28m 41s        |
| 036 > 046  | 2024-05-22 10:27:19 | 2024-05-22 10:33:17 | 5m 58s         |
| 000 > 036  | 2024-05-22 00:33:16 | 2024-05-22 00:56:40 | 23m 24s        |
| **Total**  |                     |                     | **1h 33m 42s** |

This one though, was definitively corrupted (the content of a column was shifted and a column was added) :woman_shrugging:

Closing and re-opening the note seems to make the rendering of the table, both in LP and Reading, consistent with what appears in Source but it’s not necessarily something positive :no_mouth: (depending if the content of the table was corrupted in any way or not).

I was able to restore my table in its initial state, before trying to add the line breaks :smile:, but I just thought I’d share this here :innocent: .


Debug info:

SYSTEM INFO:
	Obsidian version: v1.6.3
	Installer version: v1.6.3
	Operating system: Darwin Kernel Version 20.6.0: Thu Jul  6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
	Login status: logged in
	Catalyst license: supporter
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

will be fixed 1.6.4

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.