Skip to content

Commit ffc487b

Browse files
pan93412Copilot
andauthored
fix(challenges): handle fallback case
Co-authored-by: Copilot <[email protected]>
1 parent d42b2d2 commit ffc487b

File tree

1 file changed

+2
-0
lines changed
  • app/(app)/challenges/[id]/_components/ide

1 file changed

+2
-0
lines changed

app/(app)/challenges/[id]/_components/ide/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,7 @@ function getRefetchQueries(activeTab: string) {
136136
return [COMPARE_ANSWER_QUERY, ...baseQueries];
137137
case "submission-history":
138138
return [SUBMISSION_HISTORY, ...baseQueries];
139+
default:
140+
return baseQueries;
139141
}
140142
}

0 commit comments

Comments
 (0)