fix: console errors if any while importing postman env collections

This commit is contained in:
lohit jiddimani 2025-04-17 20:56:22 +05:30
parent 3f8ea7764e
commit 524bb5e4b7
2 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,10 @@ const ImportEnvironment = ({ collection, onClose }) => {
.then(() => { .then(() => {
toast.success('Environment imported successfully'); toast.success('Environment imported successfully');
}) })
.catch(() => toast.error('An error occurred while importing the environment')); .catch((error) => {
toast.error('An error occurred while importing the environment');
console.error(error);
});
}); });
}) })
.then(() => { .then(() => {

View File

@ -34,7 +34,10 @@ const ImportEnvironment = ({ onClose }) => {
.then(() => { .then(() => {
toast.success('Global Environment imported successfully'); toast.success('Global Environment imported successfully');
}) })
.catch(() => toast.error('An error occurred while importing the environment')); .catch((error) => {
toast.error('An error occurred while importing the environment');
console.error(error);
});
}); });
}) })
.then(() => { .then(() => {