Skip to content

Commit 7bd7fba

Browse files
committed
fix: exclude workspace entries from global planning lists
1 parent 2f31f0e commit 7bd7fba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/lib/features/iterations/Iterations.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
async function loadData() {
8484
try {
8585
loading = true;
86-
// In global view, load all iterations; in workspace view, filter by workspace
86+
// Global lists exclude local iterations; workspace lists include both scopes.
8787
const filters = isGlobalView
88-
? {}
88+
? { is_global: true }
8989
: { workspace_id: workspaceId, include_global: true };
9090
const [iterationsData, typesData] = await Promise.all([
9191
api.iterations.getAll(filters),

frontend/src/lib/features/milestones/Milestones.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
async function loadData() {
121121
try {
122122
// In workspace view, filter milestones by workspace_id and include global
123-
const filters = isGlobalView ? {} : { workspace_id: workspaceId, include_global: true };
123+
const filters = isGlobalView ? { is_global: true } : { workspace_id: workspaceId, include_global: true };
124124
const [_, milestones, ws] = await Promise.all([
125125
categoriesStore.init(),
126126
api.milestones.getAll(filters),
@@ -274,7 +274,7 @@
274274
showReleaseModal = false;
275275
releasingMilestone = null;
276276
// Refresh milestones to show updated status
277-
const filters = isGlobalView ? {} : { workspace_id: workspaceId, include_global: true };
277+
const filters = isGlobalView ? { is_global: true } : { workspace_id: workspaceId, include_global: true };
278278
try {
279279
const milestones = await api.milestones.getAll(filters);
280280
milestonesStore.set(milestones || []);

0 commit comments

Comments
 (0)