fix: guard undefined ref and lensQuality in CommitList

Author: Aaron Steven White
Commit dd1c0cf8b59ddb94b471575cf6b7cf2c118b6d92
Parent: f35b904c19
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
1 file changed +2 -2
@@ -26,7 +26,7 @@
2626 				<div class="min-w-0 flex-1">
2727 					<div class="flex items-center gap-2">
2828 						<span class="rounded bg-surface-2 px-1.5 py-0.5 font-mono text-xs text-accent">
29-							{update.ref.replace('refs/heads/', '')}
29+							{(update.ref ?? '').replace('refs/heads/', '') || 'unknown'}
3030 						</span>
3131 						<code class="font-mono text-xs text-text-secondary">
3232 							{truncateHash(update.newTarget)}
@@ -44,7 +44,7 @@
4444 							{update.breakingChangeCount} breaking
4545 						</span>
4646 					{/if}
47-					{#if update.lensQuality !== null}
47+					{#if update.lensQuality != null && typeof update.lensQuality === 'number'}
4848 						<span title="Lens quality">
4949 							lens {(update.lensQuality * 100).toFixed(0)}%
5050 						</span>
cospan · schematic version control on atproto built on AT Protocol