Skip to content

Commit

Permalink
Merge pull request #1005 from CodeForAfrica/fix/civicsignal_failing_b…
Browse files Browse the repository at this point in the history
…uild

@/CivicSignalBlog: Fix failing build due to import of allowedAppSelect.tsx component in Payload users collection
  • Loading branch information
m453h authored Nov 21, 2024
2 parents 75d8f3f + 522ceb3 commit 0b81b89
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 0b81b89

Please sign in to comment.