Page MenuHomePhabricator

D6611.diff
No OneTemporary

D6611.diff

diff --git a/web/modals/threads/confirm-leave-thread-modal.react.js b/web/modals/threads/confirm-leave-thread-modal.react.js
--- a/web/modals/threads/confirm-leave-thread-modal.react.js
+++ b/web/modals/threads/confirm-leave-thread-modal.react.js
@@ -3,6 +3,7 @@
import * as React from 'react';
import { type ThreadInfo } from 'lib/types/thread-types';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import Button, { buttonThemes } from '../../components/button.react';
import Modal from '../modal.react';
@@ -15,7 +16,7 @@
};
function ConfirmLeaveThreadModal(props: Props): React.Node {
const { threadInfo, onClose, onConfirm } = props;
- const { uiName } = threadInfo;
+ const { uiName } = useResolvedThreadInfo(threadInfo);
return (
<Modal

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 9:50 PM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683449
Default Alt Text
D6611.diff (789 B)

Event Timeline