mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
add max height and overflow to dropdown form
This commit is contained in:
parent
cd438569da
commit
c69d00250a
1 changed files with 1 additions and 4 deletions
|
|
@ -164,7 +164,6 @@ export function RecommendationsOptions({
|
|||
};
|
||||
|
||||
const handleSubmit = async () => {
|
||||
console.log('handleSubmit', selectedScenarios);
|
||||
if (selectedScenarios.length === 1) {
|
||||
setWarning("Cannot generate recommendations for a single scenario");
|
||||
return;
|
||||
|
|
@ -175,8 +174,6 @@ export function RecommendationsOptions({
|
|||
|
||||
const payload = mapScenariosToPayload(selectedScenarios, portfolioId);
|
||||
|
||||
console.log('API payload', JSON.stringify(payload));
|
||||
|
||||
const response = await fetch("/api/plan/categorisation", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
|
|
@ -221,7 +218,7 @@ export function RecommendationsOptions({
|
|||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
|
||||
<DropdownMenuContent className="w-80 p-4 space-y-4">
|
||||
<DropdownMenuContent className="w-80 p-4 space-y-4 max-h-[50vh] overflow-y-auto">
|
||||
<div className="flex justify-between">
|
||||
<Button size="sm" variant="ghost" onClick={handleSelectAll}>
|
||||
Select all
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue