FIX: Misalignment of table after edit (#30)

See Meta bug report: https://meta.discourse.org/t/table-builder/236016/54
This commit is contained in:
Keegan George 2022-10-13 14:37:01 -07:00 committed by GitHub
parent 879140b8ce
commit 7e65777187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ export default class SpreadsheetEditor extends Component {
if (tableToEdit.length > 1) { if (tableToEdit.length > 1) {
editedTable = raw.replace(tableToEdit[tableId], newRaw); editedTable = raw.replace(tableToEdit[tableId], newRaw);
} else { } else {
editedTable = raw.replace(findTableRegex(), newRaw); editedTable = raw.replace(tableToEdit[0], newRaw);
} }
// replace null characters // replace null characters