File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/app/src/app/pages/Dashboard/Content/routes/DeletedSandboxes Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import React from 'react';
22import { Observer } from 'app/componentConnectors';
33import Helmet from 'react-helmet';
4- import { uniq } from 'lodash-es';
54import { Query } from 'react-apollo';
65import RemoveIcon from 'react-icons/lib/md/highlight-remove';
76
87import { Content as Sandboxes } from '../../Sandboxes';
98
109import { DELETED_SANDBOXES_CONTENT_QUERY } from '../../../queries';
10+ import { getPossibleTemplates } from '../../Sandboxes/utils';
1111
1212const DeletedSandboxes = () => (
1313 <>
@@ -29,9 +29,7 @@ const DeletedSandboxes = () => (
2929 ? []
3030 : (data && data.me && data.me.sandboxes) || [];
3131
32- const possibleTemplates = uniq(
33- sandboxes.map(x => x.source.template)
34- );
32+ const possibleTemplates = getPossibleTemplates(sandboxes);
3533
3634 const orderedSandboxes = store.dashboard.getFilteredSandboxes(
3735 sandboxes
You can’t perform that action at this time.
0 commit comments