Upgrade to Mithril 2.0
This commit is contained in:
1 parent
3485bb8d1b
commit
ae870c3155
6 files changed
+34
-26
No files matched your search
+8
-7
@@ -104,13 +104,14 @@ function putActionHandler(action, _object): Promise<ValidationErrors> {
|
||||
object
|
||||
);
|
||||
|
||||
m.request({
|
||||
method: "PUT",
|
||||
headers: headers,
|
||||
url: `/api/files/${encodeURIComponent(id)}`,
|
||||
serialize: body => body, // Identity function to prevent JSON.parse on blob data
|
||||
data: file
|
||||
})
|
||||
store
|
||||
.xhrRequest({
|
||||
method: "PUT",
|
||||
headers: headers,
|
||||
url: `/api/files/${encodeURIComponent(id)}`,
|
||||
serialize: body => body, // Identity function to prevent JSON.parse on blob data
|
||||
body: file
|
||||
})
|
||||
.then(() => {
|
||||
notifications.push(
|
||||
"success",
|
||||
|
||||
Reference in new issue
Block a user