Skip to content

Commit 4256765

Browse files
Don't reload whole page when "recently imported" view changes (#1077)
1 parent 6f262c3 commit 4256765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/dashboard/DashboardPage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ function DashboardPage() {
149149
}, [currentLayout]);
150150

151151
// settingsQuery.isSuccess is always true due to the existence of initialData
152-
// settingsQuery.isStale will be true before the first actual fetch and it will never be true for fetched data
152+
// settingsRevision will be 0 before the first actual fetch and it will never be 0 for fetched data
153153
// This is kind of a hack but it works
154-
if (settingsQuery.isStale) {
154+
if (settingsQuery.data.WebUI_Settings.settingsRevision === 0) {
155155
return (
156156
<div className="flex grow items-center justify-center text-panel-text-primary">
157157
<Icon path={mdiLoading} size={4} spin />

0 commit comments

Comments
 (0)