Skip to content

Commit

Permalink
Merge branch 'devel' into CB-5437-flex-component
Browse files Browse the repository at this point in the history
  • Loading branch information
dariamarutkina authored Aug 6, 2024
2 parents 80d1583 + 6ca587a commit 5cf6f92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ public Integer getOrdinalPosition() {

@Property
public String getFullyQualifiedName() {
return object instanceof DBPQualifiedObject ? ((DBPQualifiedObject) object).getFullyQualifiedName(DBPEvaluationContext.UI) : getName();
return object instanceof DBPQualifiedObject
? ((DBPQualifiedObject) object).getFullyQualifiedName(DBPEvaluationContext.UI)
: getName();
}

@Property
Expand Down Expand Up @@ -151,7 +153,7 @@ public String[] getFeatures() {
return features.toArray(new String[0]);
}

private static void getObjectFeatures(DBSObject object, List<String> features) {
private void getObjectFeatures(DBSObject object, List<String> features) {
boolean isDiagramSupported = true;
if (object instanceof DBPScriptObject) features.add(OBJECT_FEATURE_SCRIPT);
if (object instanceof DBPScriptObjectExt) features.add(OBJECT_FEATURE_SCRIPT_EXTENDED);
Expand Down Expand Up @@ -181,7 +183,7 @@ private static void getObjectFeatures(DBSObject object, List<String> features) {
features.add(OBJECT_FEATURE_OBJECT_CONTAINER);
try {
Class<? extends DBSObject> childType = objectContainer.getPrimaryChildType(null);
Collection<? extends DBSObject> childrenCollection = objectContainer.getChildren(null);
Collection<? extends DBSObject> childrenCollection = objectContainer.getChildren(session.getProgressMonitor());
if (DBSTable.class.isAssignableFrom(childType) && childrenCollection != null) {
features.add(OBJECT_FEATURE_ENTITY_CONTAINER);
}
Expand Down
2 changes: 2 additions & 0 deletions webapp/packages/core-blocks/src/FormControls/useForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ export function useForm(options?: IOptions): IFormContext {
async submit(event) {
if (this.parent) {
await this.parent.submit(event);
this.ref?.reset();
} else {
event?.preventDefault();

if (this.validate()) {
await this.onSubmit.execute(event);
this.ref?.reset();
}
}
},
Expand Down

0 comments on commit 5cf6f92

Please sign in to comment.