← All changes
|
src/Agent/workflows/content/components/UpdatePostStatusConfirm.jsx
+1
-4
3.2.1
→
3.2.3
View file →
| @@ -7,12 +7,9 @@ | ||
| 7 | 7 | }; |
| 8 | 8 | |
| 9 | 9 | export const UpdatePostStatusConfirm = ({ inputs, onConfirm, onCancel }) => { |
| 10 | 10 | const handleConfirm = () => { |
| 11 | - if (window?.extAgentData?.context) { | |
| 12 | - window.extAgentData.context.postStatus = inputs.updatedStatus; | |
| 13 | - } | |
| 14 | - onConfirm({ data: inputs }); | |
| 11 | + onConfirm({ data: inputs, shouldRefreshPage: true }); | |
| 15 | 12 | }; |
| 16 | 13 | |
| 17 | 14 | const handleCancel = useCallback(() => { |
| 18 | 15 | onCancel(); |