mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
8 lines
246 B
TypeScript
8 lines
246 B
TypeScript
import type { ApiSpec } from '../api-spec';
|
|
import type { Workspace } from '../workspace';
|
|
import { isDesign } from './is-model';
|
|
|
|
export default function getWorkspaceName(w: Workspace, s: ApiSpec) {
|
|
return isDesign(w) ? s.fileName : w.name;
|
|
}
|