insomnia/packages/insomnia-app/app/models/helpers/get-workspace-name.ts
2021-06-16 14:19:00 -05:00

7 lines
212 B
TypeScript

import type { ApiSpec } from '../api-spec';
import { isDesign, Workspace } from '../workspace';
export default function getWorkspaceName(w: Workspace, s: ApiSpec) {
return isDesign(w) ? s.fileName : w.name;
}