Skip to content

Commit cf32d2b

Browse files
fix: added staleTime to individual file status
1 parent e7dda7e commit cf32d2b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/components/notebook/create-assignment/creation-switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class CreationModeSwitch extends React.Component<IModeSwitchProps> {
8989
try {
9090
currentLayout.removeWidget(w);
9191
} catch(error: any) {
92-
console.log("Could not remove widget: " + w)
92+
console.log("Could not remove widget of cell: " + w.cell.id)
9393
console.log("Error: " + error)
9494
}
9595

src/components/notebook/manual-grading/grading-switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class GradingModeSwitch extends React.Component<IModeSwitchProps> {
163163
try {
164164
currentLayout.removeWidget(w);
165165
} catch(error: any) {
166-
console.log("Could not remove widget:" + w)
166+
console.log("Could not remove widget of cell:" + w.cell.id)
167167
console.log("Error: " + error)
168168
}
169169
}

src/components/util/file-item.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const FileItem = ({
6767
true
6868
) as Promise<'up_to_date' | 'push_needed' | 'divergent'>,
6969
enabled: !!lecture && !!assignment,
70+
staleTime: 3000
7071
};
7172

7273
const { data: fileRemoteStatus } = useQuery(fileStatusQueryOptions);

0 commit comments

Comments
 (0)