mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
Fix starter prompts and analyse settings not saving properly
This commit is contained in:
@@ -112,7 +112,7 @@ const analyticProviders = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
const AnalyseFlow = ({ dialogProps, onCancel }) => {
|
const AnalyseFlow = ({ dialogProps }) => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
|
|
||||||
useNotifier()
|
useNotifier()
|
||||||
@@ -143,7 +143,6 @@ const AnalyseFlow = ({ dialogProps, onCancel }) => {
|
|||||||
})
|
})
|
||||||
dispatch({ type: SET_CHATFLOW, chatflow: saveResp.data })
|
dispatch({ type: SET_CHATFLOW, chatflow: saveResp.data })
|
||||||
}
|
}
|
||||||
onCancel()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorData = error.response.data || `${error.response.status}: ${error.response.statusText}`
|
const errorData = error.response.data || `${error.response.status}: ${error.response.statusText}`
|
||||||
enqueueSnackbar({
|
enqueueSnackbar({
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import useNotifier from 'utils/useNotifier'
|
|||||||
// API
|
// API
|
||||||
import chatflowsApi from 'api/chatflows'
|
import chatflowsApi from 'api/chatflows'
|
||||||
|
|
||||||
const StarterPrompts = ({ dialogProps, onConfirm }) => {
|
const StarterPrompts = ({ dialogProps }) => {
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
|
|
||||||
useNotifier()
|
useNotifier()
|
||||||
@@ -79,7 +79,6 @@ const StarterPrompts = ({ dialogProps, onConfirm }) => {
|
|||||||
})
|
})
|
||||||
dispatch({ type: SET_CHATFLOW, chatflow: saveResp.data })
|
dispatch({ type: SET_CHATFLOW, chatflow: saveResp.data })
|
||||||
}
|
}
|
||||||
onConfirm()
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorData = error.response.data || `${error.response.status}: ${error.response.statusText}`
|
const errorData = error.response.data || `${error.response.status}: ${error.response.statusText}`
|
||||||
enqueueSnackbar({
|
enqueueSnackbar({
|
||||||
|
|||||||
Reference in New Issue
Block a user