We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa45aa3 commit da290b2Copy full SHA for da290b2
2 files changed
apps/web/src/components/topic/edit-sticker-sidebar/index.tsx
@@ -148,10 +148,11 @@ export default function EditTopicSidebar() {
148
},
149
}
150
);
151
- } else if (editingSticker.type === "custom_sticker") {
+ } else if (editingSticker.type === "custom_sticker" && topicId) {
152
await updateCustomSticker(
153
{
154
customStickerId: editingSticker.id,
155
+ topicId,
156
title,
157
content,
158
apps/web/src/services/custom-sticker.ts
@@ -51,6 +51,7 @@ export const createCustomSticker = async (props: {
51
52
export const updateCustomSticker = async (props: {
53
customStickerId: number;
54
+ topicId: string;
55
title: string;
56
content: string;
57
}): Promise<BaseResponseDTO<unknown>> => {
0 commit comments