Skip to content

Commit

Permalink
fix: added staleTime to individual file status
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-jaeger committed Sep 12, 2024
1 parent e7dda7e commit cf32d2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class CreationModeSwitch extends React.Component<IModeSwitchProps> {
try {
currentLayout.removeWidget(w);
} catch(error: any) {
console.log("Could not remove widget: " + w)
console.log("Could not remove widget of cell: " + w.cell.id)
console.log("Error: " + error)
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/notebook/manual-grading/grading-switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class GradingModeSwitch extends React.Component<IModeSwitchProps> {
try {
currentLayout.removeWidget(w);
} catch(error: any) {
console.log("Could not remove widget:" + w)
console.log("Could not remove widget of cell:" + w.cell.id)
console.log("Error: " + error)
}
}
Expand Down
1 change: 1 addition & 0 deletions src/components/util/file-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const FileItem = ({
true
) as Promise<'up_to_date' | 'push_needed' | 'divergent'>,
enabled: !!lecture && !!assignment,
staleTime: 3000
};

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

0 comments on commit cf32d2b

Please sign in to comment.