mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
fix issue description in space app's peek overview (#5328)
This commit is contained in:
@@ -7,7 +7,7 @@ import { Dialog, Transition } from "@headlessui/react";
|
||||
// components
|
||||
import { FullScreenPeekView, SidePeekView } from "@/components/issues/peek-overview";
|
||||
// hooks
|
||||
import { useIssue, useIssueDetails } from "@/hooks/store";
|
||||
import { useIssueDetails } from "@/hooks/store";
|
||||
|
||||
type TIssuePeekOverview = {
|
||||
anchor: string;
|
||||
@@ -29,15 +29,14 @@ export const IssuePeekOverview: FC<TIssuePeekOverview> = observer((props) => {
|
||||
const [isModalPeekOpen, setIsModalPeekOpen] = useState(false);
|
||||
// store
|
||||
const issueDetailStore = useIssueDetails();
|
||||
const issueStore = useIssue();
|
||||
|
||||
const issueDetails = issueDetailStore.peekId && peekId ? issueDetailStore.details[peekId.toString()] : undefined;
|
||||
|
||||
useEffect(() => {
|
||||
if (anchor && peekId && issueStore.groupedIssueIds) {
|
||||
if (anchor && peekId) {
|
||||
issueDetailStore.fetchIssueDetails(anchor, peekId.toString());
|
||||
}
|
||||
}, [anchor, issueDetailStore, peekId, issueStore.groupedIssueIds]);
|
||||
}, [anchor, issueDetailStore, peekId]);
|
||||
|
||||
const handleClose = () => {
|
||||
// if close logic is passed down, call that instead of the below logic
|
||||
|
||||
Reference in New Issue
Block a user