File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -81,14 +81,12 @@ export async function action({ request }: ActionFunctionArgs) {
81
81
82
82
switch ( intent ) {
83
83
case Intent . Enum . dispatch_action :
84
- console . log ( "HERRREEE" ) ;
85
- const payloadObj : any = JSON . parse ( submission . value . payload ) ;
86
84
try {
87
85
await Evolver . dispatchCalibratorActionHardwareHardwareNameCalibratorProcedureDispatchPost (
88
86
{
89
87
body : {
90
88
action_name : submission . value . action_name ,
91
- payload : payloadObj ,
89
+ payload : JSON . parse ( submission . value . payload ) ,
92
90
} ,
93
91
path : {
94
92
hardware_name : submission . value . hardware_name ,
@@ -151,8 +149,6 @@ const CalibrationProcedure = ({ actions }) => {
151
149
152
150
return actions . map ( ( action , ix ) => {
153
151
const dispatchAction = ( actionFormData : object ) => {
154
- console . log ( "ACTION FORM DATA" , actionFormData ) ;
155
- console . log ( "ACTION:" , action ) ;
156
152
const formData = new FormData ( ) ;
157
153
formData . append ( "id" , id ?? "" ) ;
158
154
formData . append ( "intent" , Intent . Enum . dispatch_action ) ;
Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ export default function Device() {
200
200
onClick = { ( ) => {
201
201
notify . dismiss ( ) ;
202
202
const formData = new FormData ( ) ;
203
- formData . append ( "redirectTo" , currentPath ?? "" ) ;
203
+ formData . append ( "redirectTo" , pathname ) ;
204
+ console . log ( "FORM DAata" , formData ) ;
204
205
formData . append ( "id" , id ?? "" ) ;
205
206
formData . append ( "intent" , Intent . Enum . stop ) ;
206
207
submit ( formData , {
@@ -225,7 +226,7 @@ export default function Device() {
225
226
notify . dismiss ( ) ;
226
227
const formData = new FormData ( ) ;
227
228
228
- formData . append ( "redirectTo" , currentPath ?? "" ) ;
229
+ formData . append ( "redirectTo" , pathname ) ;
229
230
formData . append ( "id" , id ?? "" ) ;
230
231
formData . append ( "intent" , Intent . Enum . start ) ;
231
232
submit ( formData , {
You can’t perform that action at this time.
0 commit comments