From 8af557bbc64ee8fbfd4d22f893eb40181da1e1c6 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 4 Oct 2023 11:21:35 +0200 Subject: [PATCH] MOBILE-4362 wiki: Fix create empty page --- src/addons/mod/wiki/pages/edit/edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/mod/wiki/pages/edit/edit.ts b/src/addons/mod/wiki/pages/edit/edit.ts index 86bd71e26..e1ab5857d 100644 --- a/src/addons/mod/wiki/pages/edit/edit.ts +++ b/src/addons/mod/wiki/pages/edit/edit.ts @@ -359,7 +359,7 @@ export class AddonModWikiEditPage implements OnInit, OnDestroy, CanLeave { async save(): Promise { const values = this.pageForm.value; const title = values.title; - let text = values.text; + let text = values.text ?? ''; const modal = await CoreDomUtils.showModalLoading('core.sending', true);