Commit 581e7800 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 0ec4d565
...@@ -43,7 +43,12 @@ ...@@ -43,7 +43,12 @@
let showDeleteConfirm = false; let showDeleteConfirm = false;
const shareHandler = async (item) => { const shareHandler = async (func) => {
const item = await getFunctionById(localStorage.token, func.id).catch((error) => {
toast.error(error);
return null;
});
toast.success($i18n.t('Redirecting you to OpenWebUI Community')); toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
const url = 'https://openwebui.com'; const url = 'https://openwebui.com';
......
...@@ -39,7 +39,12 @@ ...@@ -39,7 +39,12 @@
let showDeleteConfirm = false; let showDeleteConfirm = false;
const shareHandler = async (item) => { const shareHandler = async (tool) => {
const item = await getToolById(localStorage.token, tool.id).catch((error) => {
toast.error(error);
return null;
});
toast.success($i18n.t('Redirecting you to OpenWebUI Community')); toast.success($i18n.t('Redirecting you to OpenWebUI Community'));
const url = 'https://openwebui.com'; const url = 'https://openwebui.com';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment