Skip to content

Commit 52de3ad

Browse files
chore: fix refresh issue for detail badge, cleanup Vite config
1 parent 5a50b9c commit 52de3ad

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

src/routes/[pid=pid]/[org]/[repo]/[id=number]/PageRenderer.svelte

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -343,21 +343,23 @@
343343
<span class="ml-2 hidden font-semibold xs:inline">Locked</span>
344344
</div>
345345
{/if}
346-
<GHBadge
347-
type={metadata.type}
348-
status={info.state === "closed"
349-
? "merged" in info
350-
? info.merged
351-
? "merged"
352-
: "closed"
353-
: "state_reason" in info && info.state_reason === "completed"
354-
? "solved"
355-
: "closed"
356-
: "draft" in info && info.draft
357-
? "draft"
358-
: "open"}
359-
class={{ "ml-auto": !info.locked, "ml-3 xs:ml-4": info.locked }}
360-
/>
346+
{#key info}
347+
<GHBadge
348+
type={metadata.type}
349+
status={info.state === "closed"
350+
? "merged" in info
351+
? info.merged
352+
? "merged"
353+
: "closed"
354+
: "state_reason" in info && info.state_reason === "completed"
355+
? "solved"
356+
: "closed"
357+
: "draft" in info && info.draft
358+
? "draft"
359+
: "open"}
360+
class={{ "ml-auto": !info.locked, "ml-3 xs:ml-4": info.locked }}
361+
/>
362+
{/key}
361363
</div>
362364
<div class="mt-4 flex flex-col gap-4">
363365
<!-- Info -->

vite.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ import devtoolsJson from "vite-plugin-devtools-json";
55
import lucidePreprocess from "vite-plugin-lucide-preprocess";
66

77
export default defineConfig({
8-
plugins: [devtoolsJson(), lucidePreprocess(), sveltekit(), tailwindcss()],
9-
server: {
10-
strictPort: true // default port required for Login with GH workflow
11-
}
8+
plugins: [devtoolsJson(), lucidePreprocess(), sveltekit(), tailwindcss()]
129
});

0 commit comments

Comments
 (0)