Skip to content

Commit

Permalink
docs: fix select labels (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
shyakadavis authored Oct 28, 2024
1 parent 9c192a0 commit 969ee4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
const id = useId("report-issue");
let securityLevel = $state(securityLevels[1].value);
const securityLevelLabel = $derived(
securityLevels.find((l) => l.value === securityLevel) ?? "Select level"
securityLevels.find((l) => l.value === securityLevel)?.label ?? "Select level"
);
let area = $state(areas[1].value);
const areaLabel = $derived(areas.find((a) => a.value === area) ?? "Select");
const areaLabel = $derived(areas.find((a) => a.value === area)?.label ?? "Select");
</script>

<Card.Root>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
const id = useId("report-issue");
let securityLevel = $state(securityLevels[1].value);
const securityLevelLabel = $derived(
securityLevels.find((l) => l.value === securityLevel) ?? "Select level"
securityLevels.find((l) => l.value === securityLevel)?.label ?? "Select level"
);
let area = $state(areas[1].value);
const areaLabel = $derived(areas.find((a) => a.value === area) ?? "Select");
const areaLabel = $derived(areas.find((a) => a.value === area)?.label ?? "Select");
</script>

<Card.Root>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
const id = useId("report-issue");
let securityLevel = $state(securityLevels[1].value);
const securityLevelLabel = $derived(
securityLevels.find((l) => l.value === securityLevel) ?? "Select level"
securityLevels.find((l) => l.value === securityLevel)?.label ?? "Select level"
);
let area = $state(areas[1].value);
const areaLabel = $derived(areas.find((a) => a.value === area) ?? "Select");
const areaLabel = $derived(areas.find((a) => a.value === area)?.label ?? "Select");
</script>

<Card.Root>
Expand Down

0 comments on commit 969ee4d

Please sign in to comment.