This commit is contained in:
seb
2026-10-14 00:10:50 +02:00
parent f6cb3d3e35
commit 56a86fc005
6 changed files with 148 additions and 12 deletions

View File

@@ -29,6 +29,7 @@ import {
apiFor,
parseNum,
} from './manifestConfig';
import { ensureDocumentNumber, getNextDocumentNumber } from '../../utils/documentNumber';
class ManifestForm extends PureComponent {
constructor(props) {
@@ -125,8 +126,11 @@ class ManifestForm extends PureComponent {
}
});
if (this.props.mode === 'edit') void this.loadEdit();
else void this.loadPartiesOnly();
if (this.props.mode === 'edit') {
void this.loadEdit();
} else {
void this.loadPartiesOnly();
}
}
componentDidUpdate(prevProps) {
@@ -664,6 +668,7 @@ class ManifestForm extends PureComponent {
attachments: this.state.attachments,
},
{
kind: cfg.kind,
partyField: cfg.partyField,
requireAtLeastOne,
externalNumber: cfg.externalNumber,