restoreAction()
Last updated 10/02/2025
Example One
The following code restores the original selected action.
Restores the original selected action
function RestoreOriginal(five: Five, context: any, result: FiveError) : FiveError {
five.restoreAction();
return five.success(result);
}
Restores the original selected action
function RestoreOriginal(five, context, result) {
five.restoreAction();
return five.success(result);
}
Example Two
The following code restores the original replaced action in a dashboard by passing in
false
to the revertSelect
parameter.
Restores the original replaced action
function RestoreOriginal(five: Five, context: any, result: FiveError) : FiveError {
five.restoreAction(false);
return five.success(result);
}
Restores the original replaced action
function RestoreOriginal(five, context, result) {
five.restoreAction(false);
return five.success(result);
}