chore(trace-viewer): add missing uploadedTraceName to the useEffect dependencies (#10294)

Fixes ESLint warning
This commit is contained in:
Max Schmitt 2021-11-13 09:36:36 +01:00 committed by GitHub
parent faf9d901c1
commit 65a9037461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ export const Workbench: React.FunctionComponent<{
setContextEntry(emptyContext);
}
})();
}, [traceURL]);
}, [traceURL, uploadedTraceName]);
const defaultSnapshotInfo = { viewport: contextEntry.options.viewport || { width: 1280, height: 720 }, url: '' };
const boundaries = { minimum: contextEntry.startTime, maximum: contextEntry.endTime };