mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 14:01:45 +02:00
[WEB-4344]fix: epics initiative count (#3452)
* fix: initiative epics count * fix: unselected epics in initiatives * fix: display of un selected initiatives
This commit is contained in:
@@ -175,9 +175,13 @@ class EpicViewSet(BaseViewSet):
|
||||
ArrayAgg(
|
||||
"initiative_epics__initiative_id",
|
||||
distinct=True,
|
||||
filter=Q(
|
||||
initiative_epics__deleted_at__isnull=True,
|
||||
initiative_epics__initiative_id__isnull=False,
|
||||
),
|
||||
),
|
||||
Value([], output_field=ArrayField(UUIDField())),
|
||||
),
|
||||
)
|
||||
)
|
||||
.prefetch_related(
|
||||
Prefetch(
|
||||
|
||||
@@ -121,9 +121,7 @@ export const InitiativeDetailRoot = observer((props: Props) => {
|
||||
<WorkspaceEpicsListModal
|
||||
workspaceSlug={workspaceSlug}
|
||||
isOpen={isEpicModalOpen}
|
||||
searchParams={{
|
||||
initiative_id: initiativeId,
|
||||
}}
|
||||
searchParams={{}}
|
||||
selectedEpicIds={getInitiativeEpicsById(initiativeId) ?? []}
|
||||
handleClose={() => setIsEpicModalOpen(false)}
|
||||
handleOnSubmit={async (data) => {
|
||||
|
||||
Reference in New Issue
Block a user