mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-19 05:25:43 +00:00
chore: remove default visibility field
This commit is contained in:
parent
d837cbd0ff
commit
abacc9af8b
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "slash-extension",
|
"name": "slash-extension",
|
||||||
"displayName": "Slash",
|
"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.",
|
"description": "An open source, self-hosted links shortener and sharing platform. Save and share your links very easily.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "plasmo dev",
|
"dev": "plasmo dev",
|
||||||
|
@ -3,7 +3,6 @@ import { useStorage } from "@plasmohq/storage/hook";
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
import useShortcutStore from "@/store/shortcut";
|
import useShortcutStore from "@/store/shortcut";
|
||||||
import { Visibility } from "@/types/proto/api/v1/common";
|
|
||||||
import { Shortcut } from "@/types/proto/api/v1/shortcut_service";
|
import { Shortcut } from "@/types/proto/api/v1/shortcut_service";
|
||||||
import Icon from "./Icon";
|
import Icon from "./Icon";
|
||||||
|
|
||||||
@ -108,7 +107,6 @@ const CreateShortcutButton = () => {
|
|||||||
name: state.name,
|
name: state.name,
|
||||||
title: state.title,
|
title: state.title,
|
||||||
link: state.link,
|
link: state.link,
|
||||||
visibility: Visibility.PUBLIC,
|
|
||||||
tags,
|
tags,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@ -116,7 +114,7 @@ const CreateShortcutButton = () => {
|
|||||||
setShowModal(false);
|
setShowModal(false);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
toast.error(error.details);
|
toast.error(error.response.data.message);
|
||||||
}
|
}
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user