diff --git a/portals/publisher/src/main/webapp/site/public/locales/en.json b/portals/publisher/src/main/webapp/site/public/locales/en.json index 2ee78c72d3b..7e4333324d4 100644 --- a/portals/publisher/src/main/webapp/site/public/locales/en.json +++ b/portals/publisher/src/main/webapp/site/public/locales/en.json @@ -2046,6 +2046,7 @@ "UnexpectedError.logout": "Logout", "UnexpectedError.message": "Error occurred due to invalid request", "UnexpectedError.title": "Internal Server Error", + "Uploading.Policies.Error": "Incompatible file type", "Workflow.ApplicationCreation.updateStatus.has.errors": "Unable to complete subscription creation approve/reject process.", "Workflow.SubscriptionCreation.List.empty.content.subscriptioncreations": "There are no pending workflow requests for subscription creation.", "Workflow.SubscriptionCreation.List.empty.title.subscriptioncreations": "Subscription Creation", diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Policies/PolicyForm/UploadPolicyDropzone.tsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Policies/PolicyForm/UploadPolicyDropzone.tsx index 35ddf32d200..526123f9172 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Policies/PolicyForm/UploadPolicyDropzone.tsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Policies/PolicyForm/UploadPolicyDropzone.tsx @@ -117,7 +117,7 @@ const UploadPolicyDropzone: FC = ({ defaultMessage: 'Incompatible file type', })); }; - const intl = useIntl(); + const renderPolicyFileDropzone = () => { return (