spelling: occurred

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-09-28 13:18:22 -04:00
parent 8f803234ce
commit 7313d1b4d7
17 changed files with 18 additions and 18 deletions

View File

@ -27,7 +27,7 @@ const CreateEnvironment = ({ collection, onClose }) => {
toast.success('Environment created in collection'); toast.success('Environment created in collection');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occured while created the environment')); .catch(() => toast.error('An error occurred while created the environment'));
} }
}); });

View File

@ -14,7 +14,7 @@ const DeleteEnvironment = ({ onClose, environment, collection }) => {
toast.success('Environment deleted successfully'); toast.success('Environment deleted successfully');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occured while deleting the environment')); .catch(() => toast.error('An error occurred while deleting the environment'));
}; };
return ( return (

View File

@ -23,7 +23,7 @@ const EnvironmentVariables = ({ environment, collection }) => {
type: 'CHANGES_SAVED' type: 'CHANGES_SAVED'
}); });
}) })
.catch(() => toast.error('An error occured while saving the changes')); .catch(() => toast.error('An error occurred while saving the changes'));
}; };
const addVariable = () => { const addVariable = () => {

View File

@ -27,7 +27,7 @@ const RenameEnvironment = ({ onClose, environment, collection }) => {
toast.success('Environment renamed successfully'); toast.success('Environment renamed successfully');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occured while renaming the environment')); .catch(() => toast.error('An error occurred while renaming the environment'));
} }
}); });

View File

@ -114,7 +114,7 @@ const GraphQLRequestPane = ({ item, collection, leftPaneWidth, onSchemaLoad, tog
const focusedTab = find(tabs, (t) => t.uid === activeTabUid); const focusedTab = find(tabs, (t) => t.uid === activeTabUid);
if (!focusedTab || !focusedTab.uid || !focusedTab.requestPaneTab) { if (!focusedTab || !focusedTab.uid || !focusedTab.requestPaneTab) {
return <div className="pb-4 px-4">An error occured!</div>; return <div className="pb-4 px-4">An error occurred!</div>;
} }
const getTabClassname = (tabName) => { const getTabClassname = (tabName) => {

View File

@ -40,7 +40,7 @@ const useGraphqlSchema = (endpoint, environment) => {
.catch((err) => { .catch((err) => {
setIsLoading(false); setIsLoading(false);
setError(err); setError(err);
toast.error('Error occured while loading GraphQL Schema'); toast.error('Error occurred while loading GraphQL Schema');
}); });
}; };

View File

@ -62,7 +62,7 @@ const HttpRequestPane = ({ item, collection, leftPaneWidth }) => {
const focusedTab = find(tabs, (t) => t.uid === activeTabUid); const focusedTab = find(tabs, (t) => t.uid === activeTabUid);
if (!focusedTab || !focusedTab.uid || !focusedTab.requestPaneTab) { if (!focusedTab || !focusedTab.uid || !focusedTab.requestPaneTab) {
return <div className="pb-4 px-4">An error occured!</div>; return <div className="pb-4 px-4">An error occurred!</div>;
} }
const getTabClassname = (tabName) => { const getTabClassname = (tabName) => {

View File

@ -112,7 +112,7 @@ const RequestTabPanel = () => {
} }
if (!focusedTab || !focusedTab.uid || !focusedTab.collectionUid) { if (!focusedTab || !focusedTab.uid || !focusedTab.collectionUid) {
return <div className="pb-4 px-4">An error occured!</div>; return <div className="pb-4 px-4">An error occurred!</div>;
} }
let collection = find(collections, (c) => c.uid === focusedTab.collectionUid); let collection = find(collections, (c) => c.uid === focusedTab.collectionUid);

View File

@ -28,7 +28,7 @@ const CloneCollectionItem = ({ collection, item, onClose }) => {
onClose(); onClose();
}) })
.catch((err) => { .catch((err) => {
toast.error(err ? err.message : 'An error occured while cloning the request'); toast.error(err ? err.message : 'An error occurred while cloning the request');
}); });
} }
}); });

View File

@ -13,7 +13,7 @@ const RemoveCollection = ({ onClose, collection }) => {
toast.success('Collection removed'); toast.success('Collection removed');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occured while removing the collection')); .catch(() => toast.error('An error occurred while removing the collection'));
}; };
return ( return (

View File

@ -19,7 +19,7 @@ const CreateOrOpenCollection = () => {
const handleOpenCollection = () => { const handleOpenCollection = () => {
dispatch(openCollection()).catch( dispatch(openCollection()).catch(
(err) => console.log(err) && toast.error('An error occured while opening the collection') (err) => console.log(err) && toast.error('An error occurred while opening the collection')
); );
}; };
const CreateLink = () => ( const CreateLink = () => (

View File

@ -36,7 +36,7 @@ const CreateCollection = ({ onClose }) => {
toast.success('Collection created'); toast.success('Collection created');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occured while creating the collection')); .catch(() => toast.error('An error occurred while creating the collection'));
} }
}); });

View File

@ -32,7 +32,7 @@ const NewFolder = ({ collection, item, onClose }) => {
onSubmit: (values) => { onSubmit: (values) => {
dispatch(newFolder(values.folderName, collection.uid, item ? item.uid : null)) dispatch(newFolder(values.folderName, collection.uid, item ? item.uid : null))
.then(() => onClose()) .then(() => onClose())
.catch((err) => toast.error(err ? err.message : 'An error occured while adding the request')); .catch((err) => toast.error(err ? err.message : 'An error occurred while adding the request'));
} }
}); });

View File

@ -56,7 +56,7 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
); );
onClose(); onClose();
}) })
.catch((err) => toast.error(err ? err.message : 'An error occured while adding the request')); .catch((err) => toast.error(err ? err.message : 'An error occurred while adding the request'));
} else { } else {
dispatch( dispatch(
newHttpRequest({ newHttpRequest({
@ -69,7 +69,7 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
}) })
) )
.then(() => onClose()) .then(() => onClose())
.catch((err) => toast.error(err ? err.message : 'An error occured while adding the request')); .catch((err) => toast.error(err ? err.message : 'An error occurred while adding the request'));
} }
} }
}); });

View File

@ -46,7 +46,7 @@ const TitleBar = () => {
const handleOpenCollection = () => { const handleOpenCollection = () => {
dispatch(openCollection()).catch( dispatch(openCollection()).catch(
(err) => console.log(err) && toast.error('An error occured while opening the collection') (err) => console.log(err) && toast.error('An error occurred while opening the collection')
); );
}; };

View File

@ -19,7 +19,7 @@ const Welcome = () => {
const handleOpenCollection = () => { const handleOpenCollection = () => {
dispatch(openCollection()).catch( dispatch(openCollection()).catch(
(err) => console.log(err) && toast.error('An error occured while opening the collection') (err) => console.log(err) && toast.error('An error occurred while opening the collection')
); );
}; };

View File

@ -67,7 +67,7 @@ const openCollection = async (win, watcher, collectionPath, options = {}) => {
} catch (err) { } catch (err) {
if (!options.dontSendDisplayErrors) { if (!options.dontSendDisplayErrors) {
win.webContents.send('main:display-error', { win.webContents.send('main:display-error', {
error: err.message || 'An error occured while opening the local collection' error: err.message || 'An error occurred while opening the local collection'
}); });
} }
} }