Skip to content

Commit

Permalink
fix prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Feb 1, 2025
1 parent ce1d415 commit 2ac02cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
10 changes: 4 additions & 6 deletions adminSiteServer/mockSiteRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ getPlainRouteWithROTransaction(

const { migrationId, baseQueryStr } = explorerRedirect
const { explorerSlug } = explorerUrlMigrationsById[migrationId]
const program = await explorerAdminServer.getExplorerFromSlug(
explorerSlug
)
const program =
await explorerAdminServer.getExplorerFromSlug(explorerSlug)
const explorerPage = await renderExplorerPage(program, trx, {
urlMigrationSpec: {
explorerUrlMigrationId: migrationId,
Expand Down Expand Up @@ -473,9 +472,8 @@ getPlainRouteWithROTransaction(
"/dods.json",
async (_, res, trx) => {
res.set("Access-Control-Allow-Origin", "*")
const { details, parseErrors } = await GdocPost.getDetailsOnDemandGdoc(
trx
)
const { details, parseErrors } =
await GdocPost.getDetailsOnDemandGdoc(trx)

if (parseErrors.length) {
console.error(
Expand Down
5 changes: 2 additions & 3 deletions baker/GrapherImageBaker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ interface SvgFilenameFragments {
export async function getGraphersAndRedirectsBySlug(
knex: db.KnexReadonlyTransaction
) {
const { graphersBySlug, graphersById } = await getPublishedGraphersBySlug(
knex
)
const { graphersBySlug, graphersById } =
await getPublishedGraphersBySlug(knex)

const redirectQuery = await db.knexRaw<
Pick<DbPlainChartSlugRedirect, "slug" | "chart_id">
Expand Down
8 changes: 4 additions & 4 deletions site/multiembedder/MultiEmbedder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ class MultiEmbedder {
const embedType: EmbedType = isExplorer
? "explorer"
: isMultiDim
? "multiDim"
: isChartView
? "chartView"
: "grapher"
? "multiDim"
: isChartView
? "chartView"
: "grapher"

// Stop observing visibility as soon as possible
this.figuresObserver?.unobserve(figure)
Expand Down

0 comments on commit 2ac02cf

Please sign in to comment.