Skip to content

Commit

Permalink
fix: correction de lien et variable non utilisée
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Oct 5, 2023
1 parent 6923107 commit edd1d63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions assets/pages/dashboard/DashboardPro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { routes } from "../../router/router";

const DashboardPro = () => {
const datastoreListQuery = useDatastoreList();
const datastoreId = datastoreListQuery?.data?.[0]._id;
const navItems = datastoreNavItems();
const { user } = useUser();

Expand All @@ -26,11 +25,7 @@ const DashboardPro = () => {
<div className={fr.cx("fr-grid-row", "fr-grid-row--gutters")}>
{datastoreListQuery.data?.map((datastore) => (
<div key={datastore._id} className={fr.cx("fr-col-12", "fr-col-sm-6", "fr-col-md-4", "fr-col-lg-3")}>
<Tile
linkProps={datastoreId ? routes.datasheet_list({ datastoreId: datastoreId }).link : { href: "#" }}
grey={true}
title={datastore.name}
/>
<Tile linkProps={routes.datasheet_list({ datastoreId: datastore._id }).link} grey={true} title={datastore.name} />
</div>
))}
<div className={fr.cx("fr-col-12", "fr-col-sm-6", "fr-col-md-4", "fr-col-lg-3")}>
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/Api/PyramidController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function add(string $datastoreId, #[MapRequestPayload] AddPyramidDTO $dto
options: ['expose' => true],
condition: 'request.isXmlHttpRequest()')
]
public function publish(string $datastoreId, string $pyramidId): JsonResponse
public function publish(/*string $datastoreId, string $pyramidId*/): JsonResponse
{
// TODO Suppression de l'Upload ?
Expand Down

0 comments on commit edd1d63

Please sign in to comment.