Skip to content

Commit 9b9c58b

Browse files
authored
Merge pull request #34 from AmRo045/dev
Fix disabling notification bug
2 parents b4b1748 + d1a44cd commit 9b9c58b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "outline-admin",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"private": true,
55
"scripts": {
66
"compile": "tsc -p tsconfig.scripts.json && tscpaths -p tsconfig.scripts.tscpaths.json -s ./dist -o ./dist",

src/components/health-check-edit-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default function HealthCheckEditForm({ healthCheck, notificationChannels
4848
try {
4949
await updateHealthCheck({
5050
id: healthCheck.id,
51-
notificationChannelId: channelId > 0 ? channelId : undefined,
51+
notificationChannelId: channelId > 0 ? channelId : null,
5252
notificationCooldown: data.notificationCooldown,
5353
interval: data.interval
5454
});

src/core/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export interface DynamicAccessKeyApiResponse {
151151

152152
export interface UpdateHealthCheckRequest {
153153
id: number;
154-
notificationChannelId?: number;
154+
notificationChannelId?: number | null;
155155
notificationCooldown: number;
156156
interval: number;
157157
}

0 commit comments

Comments
 (0)