From 704bc6e040594bf94f7c3fb84bbad250c3c7bf11 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 20 Feb 2022 13:58:50 +0000 Subject: [PATCH] Patch bug where default table may go unrecognised --- .../users/games/_game/_playtype/folders/FolderTablePage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx index 7370ab63c..288ea666d 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/folders/FolderTablePage.tsx @@ -64,7 +64,9 @@ export default function FolderTablePage({ reqUser, game, playtype }: Props) { foundDefault = true; } // Otherwise just use the provided default. - } else if (table.default) { + } + + if (table.default && !foundDefault) { setTableID(table.tableID); foundDefault = true; }