Skip to content

Commit

Permalink
refactor: linting (#4273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran McDade authored and Fran McDade committed Nov 19, 2024
1 parent fbca8c5 commit 15f6dd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import React from "react";
import {
ANVIL_CMG_CATEGORY_KEY,
ANVIL_CMG_CATEGORY_LABEL,
DATASET_RESPONSE,
} from "../../../../../site-config/anvil-cmg/category";
import {
ROUTE_EXPORT_TO_TERRA,
Expand Down Expand Up @@ -1019,7 +1020,7 @@ export function getExportCurrentQuerySelectedFilters(
datasetsResponse: DatasetsResponse,
viewContext: ViewContext<DatasetsResponse>
): Filters {
if ("datasets" in datasetsResponse) {
if (DATASET_RESPONSE.DATASETS in datasetsResponse) {
return getExportEntityCurrentQuerySelectedFilters(
datasetsResponse,
viewContext
Expand Down
4 changes: 4 additions & 0 deletions site-config/anvil-cmg/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ export const ANVIL_CMG_CATEGORY_LABEL = {
LIBRARY_ID: "Library Id",
PREP_MATERIAL_NAME: "Library Preparation",
};

export const DATASET_RESPONSE = {
DATASETS: "datasets",
};

0 comments on commit 15f6dd1

Please sign in to comment.