mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(client): fix type error
This commit is contained in:
parent
169d1203c2
commit
fc98240614
@ -31,11 +31,12 @@ export default class TableColumnEditing extends Component {
|
||||
addNewTableColumnCommand({ referenceColumn, columnToEdit, direction }: EventData<"addNewTableColumn">) {
|
||||
let attr: Attribute | undefined;
|
||||
|
||||
this.existingAttributeToEdit = undefined;
|
||||
if (columnToEdit) {
|
||||
attr = this.getAttributeFromField(columnToEdit.getField());
|
||||
this.existingAttributeToEdit = { ...attr };
|
||||
} else {
|
||||
this.existingAttributeToEdit = undefined;
|
||||
if (attr) {
|
||||
this.existingAttributeToEdit = { ...attr };
|
||||
}
|
||||
}
|
||||
|
||||
if (!attr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user