Skip to content

Commit 24a512c

Browse files
1 parent 8c76ed4 commit 24a512c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/02/z2ui5.wapa.controller_-app.controller.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,10 @@ sap.ui.define("z2ui5/Tree", ["sap/ui/core/Control"], (Control) => {
207207
z2ui5.onBeforeRoundtrip.push(this.setBackend.bind(this));
208208
},
209209

210-
renderer(oRm, oControl) {
211-
setTimeout(() => {
212-
z2ui5.oView.byId( this.getProperty("tree_id") ).setTreeState( z2ui5.treeState );
213-
}, 100);
214-
}
210+
if (!z2ui5.treeState) return;
211+
setTimeout((id) => {
212+
z2ui5.oView.byId( id ).getBinding('items').setTreeState( z2ui5.treeState );
213+
}, 100, oControl.getProperty("tree_id") );
215214
});
216215
});
217216

0 commit comments

Comments
 (0)