Skip to content

Commit

Permalink
Fix the type of profileName to state that it can't be null
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Jun 30, 2020
1 parent 3e6ba85 commit acde597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/shared/WindowTitle.js
Expand Up @@ -19,7 +19,7 @@ import type { ConnectedProps } from '../../utils/connect';

type StateProps = {|
+profile: Profile,
+profileName: string | null,
+profileName: string,
+dataSource: string,
|};

Expand Down
2 changes: 1 addition & 1 deletion src/selectors/url-state.js
Expand Up @@ -243,7 +243,7 @@ export const getPathInZipFileFromUrl: Selector<string | null> = state =>
/**
* For now only provide a name for a profile if it came from a zip file.
*/
export const getProfileName: Selector<null | string> = createSelector(
export const getProfileName: Selector<string> = createSelector(
getProfileNameFromUrl,
getPathInZipFileFromUrl,
(profileName, pathInZipFile) => {
Expand Down

0 comments on commit acde597

Please sign in to comment.