mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Fix unresponsive edit message
A bug in the handling of custom data caused an error that prevented the wizard from opening.
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
$messageParams[$providerType] = {
|
||||
...common,
|
||||
title: '',
|
||||
body: ''
|
||||
body: '',
|
||||
data: [['', '']]
|
||||
};
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,9 @@
|
||||
Object.entries(data['data'] ?? {}).forEach(([key, value]) => {
|
||||
dataEntries.push([key, value.toString()]);
|
||||
});
|
||||
$messageParams[$providerType]['data'] = dataEntries || [['', '']];
|
||||
$messageParams[$providerType]['data'] = dataEntries.length
|
||||
? dataEntries
|
||||
: [['', '']];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
let customData: [string, string][] = [];
|
||||
|
||||
onMount(() => {
|
||||
$messageParams[MessagingProviderType.Push].data = customData || [['', '']];
|
||||
customData = $messageParams[MessagingProviderType.Push].data;
|
||||
});
|
||||
|
||||
async function sendTestMessage() {
|
||||
|
||||
Reference in New Issue
Block a user