We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe78a6 commit 672bcd0Copy full SHA for 672bcd0
forms-flow-review/src/components/TaskHistory.tsx
@@ -58,9 +58,10 @@ export const TaskHistoryModal: React.FC<TaskHistoryModalProps> = React.memo(
58
const timelineRef = useRef<HTMLDivElement>(null);
59
const lastEntryRef = useRef<HTMLDivElement>(null);
60
const appHistory = useSelector((state: any) => state.task?.appHistory);
61
+ const tenantId = localStorage.getItem("tenantKey");
62
const tenantKey = useSelector(
63
(state: any) => state.tenants?.tenantId || state.tenants?.tenantData?.key
- );
64
+ ) || tenantId;
65
const redirectUrl = MULTITENANCY_ENABLED ? `/tenant/${tenantKey}/` : "/";
66
67
useEffect(() => {
0 commit comments