Skip to content

Commit

Permalink
Fix hiding draft games even if they have a project linked to it
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementPasteau committed Feb 3, 2025
1 parent 3d0b264 commit 6a4ee84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion newIDE/app/src/GameDashboard/GamesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,12 @@ const GamesList = ({

return allItems.filter(
item =>
// Filter out draft games which are not the current opened project.
// Filter out draft games which don't have a project file linked to it (local or cloud)
// and which are not the current opened project.
!(
item.game &&
item.game.savedStatus === 'draft' &&
(!item.projectFiles || !item.projectFiles.length) &&
(!project || item.game.id !== project.getProjectUuid())
)
);
Expand Down

0 comments on commit 6a4ee84

Please sign in to comment.