From 1d6877d3ef97c1e3f5ce72b6582a4450bce437c8 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 27 Jun 2023 16:07:41 -0700 Subject: [PATCH] fix(admin): fix error displaying and do not allow deleting of the last stream key. Closes #3114 --- web/components/admin/config/server/StreamKeys.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/components/admin/config/server/StreamKeys.tsx b/web/components/admin/config/server/StreamKeys.tsx index 21373c446..3c96b4f2a 100644 --- a/web/components/admin/config/server/StreamKeys.tsx +++ b/web/components/admin/config/server/StreamKeys.tsx @@ -31,7 +31,7 @@ const saveKeys = async (keys, setError) => { }); } catch (error) { console.error(error); - setError(error); + setError(error.message); } }; export const generateRndKey = () => { @@ -199,7 +199,13 @@ const StreamKeys = () => { { title: '', key: 'delete', - render: text =>