chore: update remove file function logic (#1259)
* chore: update remove file function logic * fix: workspace file delete endpoint
This commit is contained in:
parent
d09f410f21
commit
e7af3da115
4 changed files with 18 additions and 24 deletions
|
|
@ -111,10 +111,7 @@ const WorkspaceSettings: NextPage = () => {
|
|||
|
||||
setIsImageRemoving(true);
|
||||
|
||||
const index = url.indexOf(".com");
|
||||
const asset = url.substring(index + 5);
|
||||
|
||||
fileService.deleteFile(asset).then(() => {
|
||||
fileService.deleteFile(activeWorkspace.id, url).then(() => {
|
||||
workspaceService
|
||||
.updateWorkspace(activeWorkspace.slug, { logo: "" }, user)
|
||||
.then((res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue