Skip to content

Commit 43fba32

Browse files
committed
Release 1.0.13 and fix bug when push alert is an object (#390)
* Release 1.0.13 and fix bug when push alert is an object
1 parent 9b5dfb0 commit 43fba32

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Parse Dashboard Changelog
22

3+
### 1.0.13
4+
5+
* Fix log retrieval, thanks to [Jérémy Thiry](https://github.com/poltib)
6+
* Improved GeoPoint editor and ESC button in editors, thanks to [Sam Schooler](https://github.com/samschooler)
7+
* Add push status page to dashboard, thanks to [Jeremy Pease](https://github.com/JeremyPlease)
8+
39
### 1.0.12
410

511
* Fix minor style issues

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"Class Level Permissions Editor",
99
"Pointer Permissions Editor",
1010
"Send Push Notifications",
11-
"Logs Viewer"
11+
"Logs Viewer",
12+
"Push Status Page"
1213
],
1314
"description": "The Parse Dashboard",
1415
"keywords": [
@@ -17,7 +18,7 @@
1718
],
1819
"homepage": "https://github.com/ParsePlatform/parse-dashboard",
1920
"bugs": "https://github.com/ParsePlatform/parse-dashboard/issues",
20-
"version": "1.0.12",
21+
"version": "1.0.13",
2122
"repository": {
2223
"type": "git",
2324
"url": "https://github.com/ParsePlatform/parse-dashboard"

src/dashboard/Push/PushIndex.react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,11 @@ let getPushName = (pushData) => {
144144
try {
145145
payload = JSON.parse(payload);
146146
} catch(e) { }
147-
if(payload){
148-
return payload.alert ? payload.alert : payload;
147+
if (payload) {
148+
if (typeof payload.alert === 'string') {
149+
return payload.alert;
150+
}
151+
return payload.alert ? JSON.stringify(payload.alert) : payload;
149152
}
150153
}
151154
}

0 commit comments

Comments
 (0)