chore: optimizations and file name changes (#2845)

* fix: deepsource antipatterns

* fix: deepsource exclude file patterns

* chore: file name changes and removed unwanted variables

* fix: changing version number for editor
This commit is contained in:
sriram veeraghanta 2023-11-23 15:09:46 +05:30
parent d6abb87a3a
commit fa8ae6b8ce
47 changed files with 381 additions and 349 deletions

View file

@ -68,17 +68,13 @@ export const WorkspaceDetails: FC = observer(() => {
await updateWorkspace(currentWorkspace.slug, payload)
.then((res) => {
trackEvent(
'UPDATE_WORKSPACE',
res
)
trackEvent("UPDATE_WORKSPACE", res);
setToastAlert({
title: "Success",
type: "success",
message: "Workspace updated successfully",
})
}
)
});
})
.catch((err) => console.error(err));
};
@ -89,7 +85,7 @@ export const WorkspaceDetails: FC = observer(() => {
fileService.deleteFile(currentWorkspace.id, url).then(() => {
updateWorkspace(currentWorkspace.slug, { logo: "" })
.then((res) => {
.then(() => {
setToastAlert({
type: "success",
title: "Success!",