Skip to content

Commit

Permalink
#1863 bugfix: empty MT - schema may be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1844 committed Oct 15, 2021
1 parent b62b7ef commit 09a4834
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions menas/ui/components/mappingTable/filterEdit/FilterEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,11 @@ class FilterEdit {
binding.attachChange(function() {
const selectedSchema = model.getProperty("/selectedSchema");

console.trace(`entity schema change: ${selectedSchema.name}, version ${selectedSchema.version}`);
filterEdit.#onUpdatedSchema(selectedSchema);
if (selectedSchema) { // initially, on new MT, no schema is preselected in the dialog
console.debug(`entity schema change: ${selectedSchema.name}, version ${selectedSchema.version}`);
filterEdit.#onUpdatedSchema(selectedSchema);
}

});
}

Expand Down

0 comments on commit 09a4834

Please sign in to comment.