This commit is contained in:
Daniel
2022-06-04 16:19:41 +04:30
parent e57365fd0c
commit dac172a5c5
5 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import config from '../config';
import { nanoid } from 'nanoid';
const addItem = async (name, link, tag, reFetch, onExit, SetLoader, method, id=nanoid()) => {
const addItem = async (name, link, tag, reFetch, onExit, SetLoader, method, id=nanoid(), title='') => {
function isValidHttpUrl(string) {
let url;
@@ -21,7 +21,7 @@ const addItem = async (name, link, tag, reFetch, onExit, SetLoader, method, id=n
body: JSON.stringify({
_id: id,
name: name,
title: '',
title: title,
link: link,
tag: tag
}),