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:
Gan Eng Chin 2023-03-11 00:31:23 +08:00
parent 0a58ec19f8
commit 1fea0185fe
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 0 additions and 2 deletions

View File

@ -128,7 +128,5 @@ export function* getCampaignTypes() {
if ( isApiFetchError( error ) ) {
yield receiveCampaignTypes( error );
}
throw error;
}
}