Skip to content

Commit

Permalink
Clean up from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mofojed committed Dec 4, 2023
1 parent cbc0ae3 commit ee5ef03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@ public Promise<JsWidget> getWidget(JsVariableDefinition varDef, boolean refetch)
*/
public Promise<JsWidget> getWidget(TypedTicket typedTicket, boolean refetch) {
return whenServerReady("get a widget")
.then(response -> Promise.resolve(new JsWidget(this, typedTicket)))
.then(widget -> {
.then(response -> {
JsWidget widget = new JsWidget(this, typedTicket);
if (refetch) {
return widget.refetch();
}
Expand Down

0 comments on commit ee5ef03

Please sign in to comment.