mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(client): fix type error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user