this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove empty div when no content

Juliet 7e8bafb4 8553732b

+16 -1
+16 -1
src/components/lexicon-schema.tsx
··· 272 272 } 273 273 }; 274 274 275 + const hasDefContent = () => 276 + props.def.refs || 277 + props.def.minLength !== undefined || 278 + props.def.maxLength !== undefined || 279 + props.def.maxGraphemes !== undefined || 280 + props.def.minimum !== undefined || 281 + props.def.maximum !== undefined || 282 + props.def.maxSize !== undefined || 283 + props.def.accept || 284 + props.def.enum || 285 + props.def.const || 286 + props.def.default !== undefined || 287 + props.def.closed || 288 + props.def.items; 289 + 275 290 const handleHeaderClick = (e: MouseEvent) => { 276 291 e.preventDefault(); 277 292 window.history.replaceState(null, "", `#schema:${props.name}`); ··· 475 490 props.def.output || 476 491 props.def.errors || 477 492 props.def.record 478 - ) 493 + ) && hasDefContent() 479 494 } 480 495 > 481 496 <div class="divide-y divide-neutral-200 rounded-lg border border-neutral-200 bg-neutral-50/50 px-3 dark:divide-neutral-700 dark:border-neutral-700 dark:bg-neutral-800/30">