Skip to content

Commit

Permalink
fix linter formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrickert committed Sep 10, 2024
1 parent 3816a71 commit 01d1ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/frameworks/vue3-vite/src/plugins/vue-component-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ async function getTsConfigReferences(tsConfigPath: string) {
* HTMLElement, MouseEvent) are used.
*/
function removeNestedSchemas(schema: PropertyMetaSchema) {
if (typeof schema !== 'object') return;
if (typeof schema !== 'object') {
return;
}
if (schema.kind === 'enum') {
// for enum types, we do not want to remove the schemas because otherwise the controls will be missing
// instead we remove the nested schemas for the enum entries to prevent out of memory errors for types like "HTMLElement | MouseEvent"
Expand Down

0 comments on commit 01d1ef2

Please sign in to comment.