fix(workshop): encode screenshot filenames in URLs and stabilize paste effect deps
This commit is contained in:
1 parent
74289b8b01
commit
e6f8174a44
2 files changed
+2
-2
No files matched your search
@@ -65,7 +65,7 @@ export const CustomWidgetList = ({ definitions }: CustomWidgetListProps) => {
|
||||
};
|
||||
document.addEventListener("paste", onPaste);
|
||||
return () => document.removeEventListener("paste", onPaste);
|
||||
}, [importMutation]);
|
||||
}, [importMutation.mutate]);
|
||||
|
||||
if (definitions.length === 0) {
|
||||
return (
|
||||
|
||||
@@ -28,7 +28,7 @@ interface PBListResponse {
|
||||
}
|
||||
|
||||
export const getStoreFileUrl = (submission: StoreSubmission, filename: string) =>
|
||||
`${STORE_URL}/api/files/submissions/${submission.id}/${filename}`;
|
||||
`${STORE_URL}/api/files/submissions/${submission.id}/${encodeURIComponent(filename)}`;
|
||||
|
||||
export const fetchStoreSubmissions = async (
|
||||
type: "css" | "widget",
|
||||
|
||||
Reference in new issue
Block a user