From 9b722ff73d34f7818e406931b2bf4d32922b5825 Mon Sep 17 00:00:00 2001 From: hillelcoren Date: Tue, 6 Jun 2023 12:49:43 +0000 Subject: [PATCH] Admin Portal - Profile --- public/main.profile.dart.js | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/public/main.profile.dart.js b/public/main.profile.dart.js index ccb717e8b0df..b38345bfe45c 100644 --- a/public/main.profile.dart.js +++ b/public/main.profile.dart.js @@ -445439,8 +445439,15 @@ }; A._addToHistory_closure.prototype = { call$1(item) { - var t1 = this.record; - return t1.entityType == item.entityType && t1.id == item.id; + var t1 = this.record, + t2 = t1.id; + if (t1.entityType == item.entityType) { + t1 = t2 == null ? "" : t2; + t2 = item.id; + t1 = t1 === (t2 == null ? "" : t2); + } else + t1 = false; + return t1; }, $signature: 918 }; @@ -461313,14 +461320,16 @@ t4 = $history.id; t2 = t2.userCompanyStates; t3 = t3.selectedCompanyIndex; - t3 = t2._list[t3].userCompany.company; + t3 = t2._list[t3].userCompany; + t2 = t3.company; + t3 = t3.user; t1 = t1.__Store__dispatchers_F; t1 === $ && A.throwUnnamedLateFieldNI(); - t1[0].call$1(new A.ViewSettings(t3, null, null, null, false, t4, false, 0)); + t1[0].call$1(new A.ViewSettings(t2, null, null, t3, false, t4, false, 0)); break; default: t1 = $history.id; - if (t1 == null) + if ((t1 == null ? "" : t1).length === 0) A.viewEntitiesByType(t4, null); else A.viewEntityById(false, t1, t4, null, false, false); @@ -462201,12 +462210,14 @@ t1 = $history.id; t3 = this.state; t4 = t3.uiState.selectedCompanyIndex; - t4 = t3.userCompanyStates._list[t4].userCompany.company; - t2[0].call$1(new A.ViewSettings(t4, _null, _null, _null, false, t1, false, 0)); + t4 = t3.userCompanyStates._list[t4].userCompany; + t3 = t4.company; + t4 = t4.user; + t2[0].call$1(new A.ViewSettings(t3, _null, _null, t4, false, t1, false, 0)); break; default: t2 = $history.id; - if (t2 == null) + if ((t2 == null ? "" : t2).length === 0) A.viewEntitiesByType(t1, _null); else A.viewEntityById(false, t2, t1, _null, false, false);