Commit 50b6afb
authored
fix(tabular-editor): disable nested-field parsing (#1164)
Replace the watch([tableRef, schemaFields]) + initializeTable() combo
with a self-stopping watchEffect that initializes the Tabulator table
exactly once.
PapaParse warnings (e.g. ragged rows) are now logged as warning: the
parsed data is still loaded into the table. Only the PapaParse error
callback or a synchronous exception falls back to an empty table.
Disable Tabulator's nestedFieldSeparator so schema field names
containing dots (e.g. note_c2.1) are treated as flat keys.
Without this, Tabulator tries to traverse dotted field names as object
paths and can throw "Cannot assign to read only property" when the
parent value is a primitive string.1 parent c4ac40d commit 50b6afb
1 file changed
Lines changed: 42 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 330 | | |
365 | 331 | | |
366 | 332 | | |
367 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
368 | 337 | | |
369 | 338 | | |
370 | 339 | | |
| 340 | + | |
371 | 341 | | |
372 | 342 | | |
373 | 343 | | |
| |||
518 | 488 | | |
519 | 489 | | |
520 | 490 | | |
521 | | - | |
522 | | - | |
523 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
524 | 528 | | |
525 | | - | |
| 529 | + | |
526 | 530 | | |
527 | 531 | | |
528 | 532 | | |
| |||
0 commit comments