Skip to content

Commit a256b09

Browse files
committed
remove toast on update title and body by debounce
1 parent 89580a1 commit a256b09

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.todo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
- [] tag diye article filter korar somoy case insensitive vabe filter korte hobe
55
- [] jemnon `time & space complexity` ke `time-space-complexity` slug diye filter e aste hobe
6-
76
- [] Show a email is not verified yet ribbon under navbar. Make email verified during oauth signup
87

98
## Dashboard
@@ -22,9 +21,10 @@
2221

2322
## Backend Specific
2423

25-
- [] 🔥 meta uuid not autometically creating
24+
- [x] 🔥 meta uuid not autometically creating
2625
- [] Article feed sort by published_at and also discuss about this with shoaib vai
2726
- [] PATCH /api/profile: db error on empty string
2827
- [] Study about token previleages
2928
- [] Check cascade behabour of tags
3029
- [] Check for fortify with latest version
30+
- [] make unsplash proxy api with auth middleware

src/app/(dashboard-editor)/dashboard/articles/_components/ArticleEditor.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,10 @@ const ArticleEditor: React.FC<Prop> = ({ article, uuid }) => {
7272
}) => {
7373
return api.updateArticleByUUID(data.uuid, data.payload);
7474
},
75-
onSuccess: () => {
76-
showNotification({
77-
message: _t("Article updated"),
78-
color: "green",
79-
icon: <CheckIcon />,
80-
});
81-
},
75+
onSuccess: () => {},
8276
onError(error: AppAxiosException) {
83-
const msg = error.response?.data?.message || "Failed to update article";
84-
// setErrorMsg(msg);
77+
alert("Failed to update article");
78+
console.log(error.response?.data);
8579
},
8680
});
8781

src/http/repositories/article.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class ArticleApiRepository extends ApiRepository {
107107

108108
public async makePermanentDelete(uuid: string) {
109109
const { data } = await this.http.delete<{ uuid: string }>(
110-
`/api/articles/uuid/${uuid}`
110+
`/api/articles/${uuid}`
111111
);
112112

113113
return data;

0 commit comments

Comments
 (0)