Skip to content

Commit

Permalink
fix(admin): default value for empty references [EP-3661] (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-qc authored Jan 15, 2021
1 parent 7995992 commit d55763e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/earth-admin/src/pages-client/layers/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export function LayerDetail(props: any) {
getOptionLabel={(option) => option.name}
getOptionValue={(option) => option.id}
loadFunction={LayersService.getAllLayers}
defaultValue={references}
defaultValue={references || []}
selectedGroup={selectedGroup}
onChange={([e]) => e}
isClearable={true}
Expand Down

0 comments on commit d55763e

Please sign in to comment.