From b9823cc90b9554aaad97e2297288294b36ebd9bc Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Mon, 5 Aug 2024 17:59:15 -0600 Subject: [PATCH] Svelte: remove site admin gate on code intel preview (#64277) When I added this, for some reason I thought it was site admin only. As it turns out, it shouldn't be gated to site admins only, and it makes it particularly annoying on dotcom. --- .../(validrev)/(code)/-/blob/[...path]/FileView.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/web-sveltekit/src/routes/[...repo=reporev]/(validrev)/(code)/-/blob/[...path]/FileView.svelte b/client/web-sveltekit/src/routes/[...repo=reporev]/(validrev)/(code)/-/blob/[...path]/FileView.svelte index 5cf134ac7a8..e7c89d701f6 100644 --- a/client/web-sveltekit/src/routes/[...repo=reporev]/(validrev)/(code)/-/blob/[...path]/FileView.svelte +++ b/client/web-sveltekit/src/routes/[...repo=reporev]/(validrev)/(code)/-/blob/[...path]/FileView.svelte @@ -111,9 +111,7 @@ }) : null - $: codeGraphDataCommitHashes = data.user?.siteAdmin - ? codeGraphData?.map(datum => datum.commit.slice(0, 7)) - : undefined + $: codeGraphDataCommitHashes = codeGraphData?.map(datum => datum.commit.slice(0, 7)) $: codeGraphDataDebugOptions = codeGraphDataCommitHashes ? ['None', ...codeGraphDataCommitHashes] : undefined const selectedCodeGraphDataDebugOption = writable('None') $: selectedCodeGraphDataOccurrences = codeGraphData?.find(datum =>