mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 18:27:15 +08:00
chore: revert not related change
This commit is contained in:
parent
98a977eaf2
commit
558aca31e7
@ -58,8 +58,8 @@ export type AppPublisherProps = {
|
|||||||
debugWithMultipleModel?: boolean
|
debugWithMultipleModel?: boolean
|
||||||
multipleModelConfigs?: ModelAndParameter[]
|
multipleModelConfigs?: ModelAndParameter[]
|
||||||
/** modelAndParameter is passed when debugWithMultipleModel is true */
|
/** modelAndParameter is passed when debugWithMultipleModel is true */
|
||||||
onPublish?: (params?: ModelAndParameter | PublishWorkflowParams) => Promise<void> | void
|
onPublish?: (params?: any) => Promise<any> | any
|
||||||
onRestore?: () => Promise<void> | void
|
onRestore?: () => Promise<any> | any
|
||||||
onToggle?: (state: boolean) => void
|
onToggle?: (state: boolean) => void
|
||||||
crossAxisOffset?: number
|
crossAxisOffset?: number
|
||||||
toolPublished?: boolean
|
toolPublished?: boolean
|
||||||
|
|||||||
@ -124,7 +124,7 @@ vi.mock('@/app/components/app/app-publisher', () => ({
|
|||||||
<button type="button" onClick={() => { Promise.resolve(props.onPublish?.()).catch(() => undefined) }}>
|
<button type="button" onClick={() => { Promise.resolve(props.onPublish?.()).catch(() => undefined) }}>
|
||||||
publisher-publish
|
publisher-publish
|
||||||
</button>
|
</button>
|
||||||
<button type="button" onClick={() => { Promise.resolve(props.onPublish?.({ url: '/apps/app-id/workflows/publish', title: 'Test title', releaseNotes: 'Test notes' })).catch(() => undefined) }}>
|
<button type="button" onClick={() => { Promise.resolve(props.onPublish?.({ title: 'Test title', releaseNotes: 'Test notes' })).catch(() => undefined) }}>
|
||||||
publisher-publish-with-params
|
publisher-publish-with-params
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user