Skip to content

Commit ae92eb8

Browse files
committed
edits to usestatemodal for handling objects in the modal
co-authored-by: Crys Lim [email protected]
1 parent 59c7361 commit ae92eb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/components/bottom/UseStateModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ function UseStateModal({ updateAttributeWithState, attributeToChange, childId })
3535
<div className="useState-stateDisplay">
3636
<TableStateProps
3737
providerId = {componentProviderId}
38+
// objectId
3839
selectHandler={(table) => {
40+
// if object => show object -> rerender
41+
// setObjectId
42+
43+
// if not object => actually update state
3944
updateAttributeWithState(attributeToChange, componentProviderId, table.row.id);
4045
setOpen(false);
4146
}}

0 commit comments

Comments
 (0)