Skip to content

Commit b44fac3

Browse files
n0samuLord-McSweeney
authored andcommitted
demo: Check if SWF sample type is undefined, not null
We don't define a type for the Ruffle logo SWF in swfs.json. That means its type is undefined, not null. This fixes the Ruffle Logo entry not appearing in the Sample SWF dropdown (regressed by #20448)
1 parent 2a8f0f6 commit b44fac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/packages/demo/src/navbar/samples.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface DemoSwf {
2121
author?: string;
2222
authorLink?: string;
2323
config?: Config.BaseLoadOptions;
24-
type: SampleCategory | null;
24+
type?: SampleCategory;
2525
}
2626

2727
interface SampleSelectionProperties {
@@ -87,7 +87,7 @@ export function SampleSelection({
8787
>
8888
{availableSamples.map((sample, i) => (
8989
<Fragment key={i}>
90-
{sample.type === null && (
90+
{sample.type === undefined && (
9191
<option value={i}>{sample.title}</option>
9292
)}
9393
</Fragment>

0 commit comments

Comments
 (0)