Don't throw error in getCampaignTypes.
In WP 5.9, if we throw error, there would be an uncaught promise, and it causes UI to break.
This commit is contained in:
parent
0a58ec19f8
commit
1fea0185fe
|
@ -128,7 +128,5 @@ export function* getCampaignTypes() {
|
|||
if ( isApiFetchError( error ) ) {
|
||||
yield receiveCampaignTypes( error );
|
||||
}
|
||||
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue