diff --git a/frontend/extension/package.json b/frontend/extension/package.json index 899dc25..57684c2 100644 --- a/frontend/extension/package.json +++ b/frontend/extension/package.json @@ -1,7 +1,7 @@ { "name": "slash-extension", "displayName": "Slash", - "version": "1.0.6", + "version": "1.0.7", "description": "An open source, self-hosted links shortener and sharing platform. Save and share your links very easily.", "scripts": { "dev": "plasmo dev", diff --git a/frontend/extension/src/components/CreateShortcutButton.tsx b/frontend/extension/src/components/CreateShortcutButton.tsx index e48e05f..3657444 100644 --- a/frontend/extension/src/components/CreateShortcutButton.tsx +++ b/frontend/extension/src/components/CreateShortcutButton.tsx @@ -3,7 +3,6 @@ import { useStorage } from "@plasmohq/storage/hook"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; import useShortcutStore from "@/store/shortcut"; -import { Visibility } from "@/types/proto/api/v1/common"; import { Shortcut } from "@/types/proto/api/v1/shortcut_service"; import Icon from "./Icon"; @@ -108,7 +107,6 @@ const CreateShortcutButton = () => { name: state.name, title: state.title, link: state.link, - visibility: Visibility.PUBLIC, tags, }) ); @@ -116,7 +114,7 @@ const CreateShortcutButton = () => { setShowModal(false); } catch (error: any) { console.error(error); - toast.error(error.details); + toast.error(error.response.data.message); } setIsLoading(false); };