mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-31 04:59:50 +02:00
Fix broken build
This commit is contained in:
@@ -11,13 +11,13 @@ export interface Props {
|
||||
description: string;
|
||||
roadmapPermalink: string;
|
||||
jsonUrl: string;
|
||||
dimensions: {
|
||||
dimensions?: {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
}
|
||||
|
||||
const { roadmapId, jsonUrl, dimensions, description, roadmapPermalink } =
|
||||
const { roadmapId, jsonUrl, dimensions = null, description, roadmapPermalink } =
|
||||
Astro.props;
|
||||
---
|
||||
|
||||
@@ -41,7 +41,7 @@ const { roadmapId, jsonUrl, dimensions, description, roadmapPermalink } =
|
||||
<TopicOverlay />
|
||||
<div
|
||||
id="roadmap-svg"
|
||||
style={`--aspect-ratio:${dimensions.width}/${dimensions.height}`}
|
||||
style={dimensions ? `--aspect-ratio:${dimensions.width}/${dimensions.height}` : null}
|
||||
data-roadmap-id={roadmapId}
|
||||
data-json-url={jsonUrl}
|
||||
>
|
||||
|
@@ -1,5 +1,4 @@
|
||||
---
|
||||
jsonUrl: "/jsons/android.json"
|
||||
pdfUrl: "/pdfs/android.pdf"
|
||||
order: 4
|
||||
featuredTitle: "Android"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
---
|
||||
jsonUrl: "angular.json"
|
||||
pdfUrl: "ngular.pdf"
|
||||
jsonUrl: "/jsons/angular.json"
|
||||
pdfUrl: "/pdfs/angular.pdf"
|
||||
order: 3
|
||||
featuredTitle: "Angular"
|
||||
featuredDescription: "Step by step guide to become a Angular Developer in 2022"
|
||||
|
@@ -1,5 +1,4 @@
|
||||
---
|
||||
jsonUrl: "/jsons/postgresql-dba.json"
|
||||
pdfUrl: "/pdfs/postgresql-dba.pdf"
|
||||
order: 5
|
||||
featuredTitle: "DBA"
|
||||
|
Reference in New Issue
Block a user