Skip to content

Commit

Permalink
fix: Fix failing build due to import of tsx component in js payload c…
Browse files Browse the repository at this point in the history
…ollections
  • Loading branch information
m453h committed Nov 21, 2024
1 parent e2cbf4a commit 522ceb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import applications from "#civicsignalblog/payload/lib/data/common/applications"

function CustomSelectComponent({ path, label }) {
const { user } = useAuth();
const { value, setValue } = useField<string>({ path });
const { value, setValue } = useField({ path });
const [options, setOptions] = useState([]);

useEffect(() => {
Expand All @@ -32,7 +32,7 @@ function CustomSelectComponent({ path, label }) {
path={path}
name={path}
options={options}
value={value}
value={String(value ?? "")}
onChange={(e) => setValue(e.value)}
/>
</div>
Expand Down

0 comments on commit 522ceb3

Please sign in to comment.