mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
allow for an empty string as a workspace name in the header (#4197)
This commit is contained in:
parent
f1216cb564
commit
4c906ccae5
@ -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;
|
||||
|
@ -35,7 +35,7 @@ export const WorkspacePageHeader: FunctionComponent<Props> = ({
|
||||
);
|
||||
const activeProjectName = useSelector(selectActiveProjectName);
|
||||
|
||||
if (!activeWorkspace || !activeWorkspaceName || !activeApiSpec || !activity) {
|
||||
if (!activeWorkspace || !activeApiSpec || !activity) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user