Skip to content

Commit

Permalink
fix JDBC realm form ping
Browse files Browse the repository at this point in the history
  • Loading branch information
michpetrov committed Sep 10, 2024
1 parent fb9c0c1 commit aa7e3bd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ private Form<ModelNode> keyMapperForm(Metadata metadata, String keyMapper) {
Metadata keyMapperMetadata = metadata.forComplexAttribute(keyMapper);
return new ModelNodeForm.Builder<>(id(PRINCIPAL_QUERY, keyMapper, FORM), keyMapperMetadata)
.singleton(
() -> presenter.pingKeyMapper(selectedJdbcRealm, pqTable.selectedRow(), keyMapper),
() -> pqTable.hasSelection()
? presenter.pingKeyMapper(selectedJdbcRealm, pqTable.selectedRow(), keyMapper)
: null,
() -> presenter.addKeyMapper(selectedJdbcRealm, pqTable.selectedRow(), pqIndex, keyMapper))
.onSave((f, changedValues) -> presenter.saveKeyMapper(selectedJdbcRealm, pqIndex,
keyMapper, changedValues))
Expand Down

0 comments on commit aa7e3bd

Please sign in to comment.