fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -146,7 +146,9 @@ export default function Case({
|
||||
const requestForm = useForm({
|
||||
service_version_id: services[0]?.id ?? '',
|
||||
client_key: createOperationKey(),
|
||||
opportunity: new URLSearchParams(usePage().url.split('?')[1] ?? '').get('opportunity'),
|
||||
opportunity: new URLSearchParams(usePage().url.split('?')[1] ?? '').get(
|
||||
'opportunity',
|
||||
),
|
||||
});
|
||||
const stageForm = useForm({
|
||||
version: dossier.version,
|
||||
|
||||
@@ -139,7 +139,10 @@ export default function RequestPage({
|
||||
values={form.data.payload}
|
||||
boundRevision={boundContextRevision}
|
||||
readOnly={!canEdit}
|
||||
allowedFields={[...Object.keys(definition.fields), 'context_opportunity'].filter(
|
||||
allowedFields={[
|
||||
...Object.keys(definition.fields),
|
||||
'context_opportunity',
|
||||
].filter(
|
||||
(k) =>
|
||||
request.status !== 'returned' ||
|
||||
request.editable_fields.includes(k),
|
||||
|
||||
Reference in New Issue
Block a user