Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 30, 2021
1 parent 7b0ded2 commit 48a1b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/ui/ViewContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default withContentRect('bounds')(
{aboutTrack ? (
<AboutDialog
model={aboutTrack}
handleClose={() => session.setShowAboutConfig(undefined)}
handleClose={() => session.setShowAboutConfig?.(undefined)}
/>
) : null}
<div ref={scrollRef} style={{ display: 'flex' }}>
Expand Down
2 changes: 2 additions & 0 deletions packages/core/util/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export interface AbstractSessionModel extends AbstractViewContainer {
getTrackActionMenuItems?: Function
addAssembly?: Function
removeAssembly?: Function
showAboutConfig?: AnyConfigurationModel
setShowAboutConfig?: Function
}
export function isSessionModel(thing: unknown): thing is AbstractSessionModel {
return (
Expand Down

0 comments on commit 48a1b6a

Please sign in to comment.