fix: missing afterSuccess configuration for the submit action (#5329)

This commit is contained in:
Katherine 2024-09-26 17:19:16 +08:00 committed by GitHub
parent c3e740b552
commit 7f6c19c16e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 0 additions and 20 deletions

View File

@ -52,10 +52,6 @@ export const customizeSaveRecordActionSettings = new SchemaSettings({
{
name: 'afterSuccessfulSubmission',
Component: AfterSuccess,
useVisible() {
const fieldSchema = useFieldSchema();
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
},
},
{
name: 'bindWorkflow',

View File

@ -181,10 +181,6 @@ export const createSubmitActionSettings = new SchemaSettings({
{
name: 'afterSuccessfulSubmission',
Component: AfterSuccess,
useVisible() {
const fieldSchema = useFieldSchema();
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
},
},
{
name: 'refreshDataBlockRequest',

View File

@ -71,10 +71,6 @@ export const updateSubmitActionSettings = new SchemaSettings({
{
name: 'afterSuccessfulSubmission',
Component: AfterSuccess,
useVisible() {
const fieldSchema = useFieldSchema();
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
},
},
{
name: 'refreshDataBlockRequest',

View File

@ -144,10 +144,6 @@ const schemaSettingsItems: SchemaSettingsItemType[] = [
{
name: 'afterSuccess',
Component: AfterSuccess,
useVisible() {
const fieldSchema = useFieldSchema();
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
},
},
{
name: 'refreshDataBlockRequest',

View File

@ -47,10 +47,6 @@ export const customizeSubmitToWorkflowActionSettings = new SchemaSettings({
{
name: 'afterSuccessfulSubmission',
Component: AfterSuccess,
useVisible() {
const fieldSchema = useFieldSchema();
return isValid(fieldSchema?.['x-action-settings']?.onSuccess);
},
},
{
name: 'bindWorkflow',