Skip to content

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
aswallace committed Oct 2, 2024
1 parent 7b5729d commit e8dd8ff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/core/entity/FileExplorerURL/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ export default class FileExplorerURL {
const unparsedSort = params.get("sort");
const hierarchyDepth = hierarchy.length;

const allParsedFilters = [...unparsedFilters].map((unparsedFilter) =>
JSON.parse(unparsedFilter)
);

const parsedSort = unparsedSort ? JSON.parse(unparsedSort) : undefined;
if (
parsedSort &&
Expand All @@ -150,10 +146,12 @@ export default class FileExplorerURL {
sortColumn: parsedSort
? new FileSort(parsedSort.annotationName, parsedSort.order || SortOrder.ASC)
: undefined,
filters: allParsedFilters.map(
(parsedFilter) =>
new FileFilter(parsedFilter.name, parsedFilter.value, parsedFilter.type)
),
filters: unparsedFilters
.map((unparsedFilter) => JSON.parse(unparsedFilter))
.map(
(parsedFilter) =>
new FileFilter(parsedFilter.name, parsedFilter.value, parsedFilter.type)
),
sources: unparsedSources.map((unparsedSource) => JSON.parse(unparsedSource)),
sourceMetadata: unparsedSourceMetadata ? JSON.parse(unparsedSourceMetadata) : undefined,
openFolders: unparsedOpenFolders
Expand Down

0 comments on commit e8dd8ff

Please sign in to comment.