Skip to content

Commit 1d06949

Browse files
harikakondurclaude
andcommitted
fix(link-checker): guard visibility reload against missing installation match [ES-524]
When getForOrganization returns no match for the current space/environment, match is undefined and deepEqual(undefined, params) always returns false, causing a page reload every time the user switches back to the tab. This wiped in-progress scan results, explaining both the "links disappear on tab switch" and "page freezes/resets at ~14,670 links" symptoms. Only reload when a match is found AND its parameters differ from the current installation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eccaf63 commit 1d06949

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/link-checker/components/locations/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default function Page() {
195195
item.sys.space.sys.id === sdk.ids.space &&
196196
item.sys.environment.sys.id === sdk.ids.environment
197197
);
198-
if (!deepEqual(match?.parameters, sdk.parameters.installation)) {
198+
if (match && !deepEqual(match.parameters, sdk.parameters.installation)) {
199199
window.location.reload();
200200
}
201201
} catch {

0 commit comments

Comments
 (0)