fix customSupport for ArduinoJson 7.2.1

This commit is contained in:
proddy
2024-11-16 14:47:07 +01:00
parent f071fd842b
commit 1f04c1fc2c
5 changed files with 51 additions and 19 deletions

View File

@@ -39,7 +39,7 @@ const Help = () => {
const [customSupportHTML, setCustomSupportHTML] = useState<string | null>(null);
const [notFound, setNotFound] = useState<boolean>(false);
useRequest(() => callAction({ action: 'customSupport' })).onSuccess((event) => {
useRequest(() => callAction({ action: 'getCustomSupport' })).onSuccess((event) => {
if (event && event.data && Object.keys(event.data).length !== 0) {
const data = event.data.Support;
if (data.img_url) {