Skip to content

Commit 672bcd0

Browse files
committed
FWF-5452 : [BugFix] Fixed undefined tenantKey issue in task history view
1 parent dbe78a6 commit 672bcd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

forms-flow-review/src/components/TaskHistory.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ export const TaskHistoryModal: React.FC<TaskHistoryModalProps> = React.memo(
5858
const timelineRef = useRef<HTMLDivElement>(null);
5959
const lastEntryRef = useRef<HTMLDivElement>(null);
6060
const appHistory = useSelector((state: any) => state.task?.appHistory);
61+
const tenantId = localStorage.getItem("tenantKey");
6162
const tenantKey = useSelector(
6263
(state: any) => state.tenants?.tenantId || state.tenants?.tenantData?.key
63-
);
64+
) || tenantId;
6465
const redirectUrl = MULTITENANCY_ENABLED ? `/tenant/${tenantKey}/` : "/";
6566

6667
useEffect(() => {

0 commit comments

Comments
 (0)