fix(webapp): always reload the smart-column sample when the source changes

The load effect skipped the fetch while a previous request was in flight and never retried, so quickly switching source could leave the sample and preview showing the old (or no) source. The effect only fires on open/sampleUrl change, so the guard was unnecessary; drop it.
This commit is contained in:
Eric Allam
2026-08-19 10:49:09 +01:00
parent 1e2b056849
commit 61cba49647
@@ -99,7 +99,7 @@ export function AddSmartColumnDialog({
}, [organization.slug, project.slug, environment.slug, currentSearch, sampleFiltersKey, source]);
useEffect(() => {
if (open && sample.state === "idle") {
if (open) {
sample.load(sampleUrl);
}
// eslint-disable-next-line react-hooks/exhaustive-deps