Skip to content

Commit 8186696

Browse files
committed
Safer link field
1 parent 51b0a88 commit 8186696

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/components/LinkField.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ const LinkField = ({
8383
<>
8484
<Autocomplete
8585
size="small"
86-
loading={active && !items}
86+
loading={active && (!items || !linked)}
8787
isOptionEqualToValue={(i1, i2) => i1.id === i2.id}
88-
options={items || []}
88+
options={(linked && items) || []}
8989
getOptionLabel={(item) => titleGetter(item)}
9090
slotProps={{ chip: { size: 'small' } }}
9191
renderInput={(params) => (

0 commit comments

Comments
 (0)