u
This commit is contained in:
@@ -111,7 +111,7 @@ class ManifestHeader extends PureComponent {
|
||||
const useExternalNumber = Boolean(cfg.externalNumber);
|
||||
|
||||
const selected =
|
||||
parties.find((row) => row.id === partyId) ?? null;
|
||||
(parties || []).find((row) => row.id === partyId) ?? null;
|
||||
|
||||
const isDateEmpty = !date || String(date).trim() === '';
|
||||
const isPartyEmpty = partyId == null || partyId === '';
|
||||
@@ -147,12 +147,12 @@ class ManifestHeader extends PureComponent {
|
||||
/>
|
||||
<Autocomplete
|
||||
size="small"
|
||||
options={parties}
|
||||
options={parties || []}
|
||||
value={selected}
|
||||
loading={Boolean(partiesLoading)}
|
||||
disabled={saving || pdfUploading}
|
||||
getOptionLabel={(option) => partyDisplayName(kind, option)}
|
||||
isOptionEqualToValue={(option, value) => option.id === value.id}
|
||||
isOptionEqualToValue={(option, value) => option?.id === value?.id}
|
||||
onChange={this.handlePartyChange}
|
||||
sx={{
|
||||
flex: { xs: '1 1 100%', sm: '2 1 200px' },
|
||||
|
||||
Reference in New Issue
Block a user