Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
7a6857e95e
commit
9a7c52eaa5
@@ -87,6 +87,11 @@ export function ConvertToCollectionsDialog({
|
||||
const [status, setStatus] = useState("none");
|
||||
const [includeEmpty, setIncludeEmpty] = useState(false);
|
||||
const [emptyName, setEmptyName] = useState("");
|
||||
// When true (default), create ONE combined collection for the case using
|
||||
// the first selected contact as the primary homeowner. When false, fall
|
||||
// back to one collection per selected contact.
|
||||
const [combine, setCombine] = useState(true);
|
||||
const [primaryId, setPrimaryId] = useState<string | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
@@ -95,6 +100,8 @@ export function ConvertToCollectionsDialog({
|
||||
setStatus("none");
|
||||
setIncludeEmpty(false);
|
||||
setEmptyName("");
|
||||
setCombine(true);
|
||||
setPrimaryId(null);
|
||||
(async () => {
|
||||
setLoading(true);
|
||||
const { data: ccs, error } = await supabase
|
||||
|
||||
Reference in New Issue
Block a user