Skip to content

Commit 25c7d3c

Browse files
committed
fix: use options instead of defaultOptions to set option values
1 parent 3b8d5a5 commit 25c7d3c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

site/src/components/MultiSelectCombobox/MultiSelectCombobox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const meta: Meta<typeof MultiSelectCombobox> = {
1616
All organizations selected
1717
</p>
1818
),
19-
defaultOptions: organizations.map((org) => ({
19+
options: organizations.map((org) => ({
2020
label: org.display_name,
2121
value: org.id,
2222
})),

site/src/pages/DeploymentSettingsPage/IdpOrgSyncPage/IdpOrgSyncPageView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export const IdpOrgSyncPageView: FC<IdpSyncPageViewProps> = ({
257257
className="min-w-60 max-w-3xl"
258258
value={coderOrgs}
259259
onChange={setCoderOrgs}
260-
defaultOptions={organizations.map((org) => ({
260+
options={organizations.map((org) => ({
261261
label: org.display_name,
262262
value: org.id,
263263
}))}

site/src/pages/OrganizationSettingsPage/IdpSyncPage/IdpGroupSyncForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export const IdpGroupSyncForm: FC<IdpGroupSyncFormProps> = ({
259259
className="min-w-60 max-w-3xl"
260260
value={coderGroups}
261261
onChange={setCoderGroups}
262-
defaultOptions={groups.map((group) => ({
262+
options={groups.map((group) => ({
263263
label: group.display_name || group.name,
264264
value: group.id,
265265
}))}

site/src/pages/OrganizationSettingsPage/IdpSyncPage/IdpRoleSyncForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const IdpRoleSyncForm: FC<IdpRoleSyncFormProps> = ({
200200
className="min-w-60 max-w-3xl"
201201
value={coderRoles}
202202
onChange={setCoderRoles}
203-
defaultOptions={roles.map((role) => ({
203+
options={roles.map((role) => ({
204204
label: role.display_name || role.name,
205205
value: role.name,
206206
}))}

0 commit comments

Comments
 (0)