Skip to content

Commit 2a5651b

Browse files
Fix App project typing
1 parent 0fa37eb commit 2a5651b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

apps/app/src/react/App.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ export const App = observer(function App() {
678678
)
679679

680680
const hasProject = Boolean(project)
681+
const resolvedProject = project
681682

682683
const handleClickResizer: React.MouseEventHandler<HTMLDivElement> = (e) => {
683684
const tarEl = e.target as HTMLElement
@@ -731,7 +732,7 @@ export const App = observer(function App() {
731732
</ErrorBoundary>
732733
) : store.guiStore.isHomeSelected() ? (
733734
<ErrorBoundary>
734-
<HomePage project={project} />
735+
<HomePage project={resolvedProject as Project} />
735736
</ErrorBoundary>
736737
) : (
737738
<div
@@ -751,7 +752,7 @@ export const App = observer(function App() {
751752
}}
752753
>
753754
<ErrorBoundary>
754-
<RundownView mappings={project.mappings} />
755+
<RundownView mappings={(resolvedProject as Project).mappings} />
755756
</ErrorBoundary>
756757
</div>
757758
<div className="movable-separator">
@@ -769,7 +770,7 @@ export const App = observer(function App() {
769770
}}
770771
>
771772
<ErrorBoundary>
772-
<Sidebar mappings={project.mappings} />
773+
<Sidebar mappings={(resolvedProject as Project).mappings} />
773774
</ErrorBoundary>
774775
</div>
775776
</div>

0 commit comments

Comments
 (0)