Skip to content

Commit fca216f

Browse files
authored
Merge pull request #1174 from dacadeorg/fix/fetch-submissions-without-course-relation
fix: remove course relation when fetching a submission by id
2 parents 730fded + 9b91413 commit fca216f

File tree

1 file changed

+1
-1
lines changed
  • src/store/feature/communities/challenges/submissions

1 file changed

+1
-1
lines changed

src/store/feature/communities/challenges/submissions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const createSubmissionTeam = createAsyncThunk(
177177
export const findWithRelations = createAsyncThunk("submissions/findWithRelations", async ({ id, locale }: { id: string; locale?: string }, { dispatch }) => {
178178
const { data } = await api(locale).server.get(`submissions/${id}`, {
179179
params: {
180-
relations: ["challenge", "evaluation", "course", "community"],
180+
relations: ["challenge", "evaluation", "community"],
181181
},
182182
});
183183
dispatch(setCurrent(data));

0 commit comments

Comments
 (0)