selected items instead of selection

Signed-off-by: lukzerom <lukzerom@gmail.com>
This commit is contained in:
lukzerom
2021-12-14 23:40:30 +01:00
parent 8ecfac35fd
commit aec8c678c8
3 changed files with 10 additions and 10 deletions
@@ -16,7 +16,7 @@
import {
Progress,
Select,
Selection,
SelectedItems,
SelectItem,
} from '@backstage/core-components';
import { useApi } from '@backstage/core-plugin-api';
@@ -109,7 +109,7 @@ export const RepoUrlPicker = ({
allowedOwners,
);
const updateHost = useCallback(
(value: Selection) => {
(value: SelectedItems) => {
onChange(
serializeFormData({
host: value as string,
@@ -125,7 +125,7 @@ export const RepoUrlPicker = ({
);
const updateOwnerSelect = useCallback(
(value: Selection) =>
(value: SelectedItems) =>
onChange(
serializeFormData({
host,