Fix link entry with only_app & initial value did not find entry label

This commit is contained in:
nathan 2022-07-18 11:42:26 -06:00
parent b064b84874
commit 8ffbe97884

View File

@ -175,6 +175,12 @@ export class Et2LinkEntry extends Et2InputWidget(FormControlMixin(ValidateMixin(
set only_app(app) set only_app(app)
{ {
this.__only_app = app || ""; this.__only_app = app || "";
// If initial value got set before only_app, it still needs app in pre-render value
if(this._value && app)
{
this._value.app = this.__only_app;
}
if(app) if(app)
{ {
this.app = app; this.app = app;