Skip to content

Commit

Permalink
fix: revert custom options object merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jun 19, 2023
1 parent fb22900 commit c980ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/swagger-ui/swagger-ui.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { favIconHtml, htmlTemplateString, jsTemplateString } from './constants';
import { OpenAPIObject, SwaggerCustomOptions } from '../interfaces';
import { favIconHtml, htmlTemplateString, jsTemplateString } from './constants';
import { buildJSInitOptions } from './helpers';

/**
Expand Down Expand Up @@ -77,7 +77,7 @@ export function buildSwaggerHTML(
customSiteTitle = 'Swagger UI',
customCssUrl = '',
explorer = false
} = { ...customOptions, ...customOptions.swaggerOptions };
} = customOptions;

const favIconString = customfavIcon
? `<link rel='icon' href='${customfavIcon}' />`
Expand Down

0 comments on commit c980ca2

Please sign in to comment.