allow for an empty string as a workspace name in the header (#4197)

This commit is contained in:
James Gatz 2021-11-10 16:11:04 +01:00 committed by GitHub
parent f1216cb564
commit 4c906ccae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ import { WorkspaceSettingsModal } from '../modals/workspace-settings-modal';
interface Props {
activeEnvironment: Environment | null;
activeWorkspace: Workspace;
activeWorkspaceName: string;
activeWorkspaceName?: string;
activeApiSpec: ApiSpec;
activeProject: Project;
hotKeyRegistry: HotKeyRegistry;

View File

@ -35,7 +35,7 @@ export const WorkspacePageHeader: FunctionComponent<Props> = ({
);
const activeProjectName = useSelector(selectActiveProjectName);
if (!activeWorkspace || !activeWorkspaceName || !activeApiSpec || !activity) {
if (!activeWorkspace || !activeApiSpec || !activity) {
return null;
}