Bug fix.
This commit is contained in:
parent
6e27ed574f
commit
36c7cbd726
|
@ -30,7 +30,8 @@ const EditItem = ({
|
|||
SetLoader,
|
||||
"PUT",
|
||||
item._id,
|
||||
item.title
|
||||
item.title,
|
||||
item.date
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ const List = ({ data, tags, collections, reFetch, SetLoader, lightMode }) => {
|
|||
item={data[editIndex]}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{/* eslint-disable-next-line */}
|
||||
{data.map((e, i, array) => {
|
||||
try {
|
||||
|
|
|
@ -12,10 +12,8 @@ const addItem = async (
|
|||
method,
|
||||
id = nanoid(),
|
||||
title = "",
|
||||
date = new Date()
|
||||
date = new Date().toString()
|
||||
) => {
|
||||
const dateCreated = date.toString();
|
||||
|
||||
function isValidHttpUrl(string) {
|
||||
let url;
|
||||
|
||||
|
@ -38,7 +36,7 @@ const addItem = async (
|
|||
link: link,
|
||||
tag: tag,
|
||||
collection: collection,
|
||||
date: dateCreated,
|
||||
date: date,
|
||||
}),
|
||||
headers: {
|
||||
"Content-type": "application/json; charset=UTF-8",
|
||||
|
|
|
@ -174,7 +174,6 @@
|
|||
.delete {
|
||||
margin-top: 20px;
|
||||
margin-left: 10px;
|
||||
display: inline;
|
||||
font-size: 1.1rem;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100vw;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.send-box {
|
||||
|
|
Ŝarĝante…
Reference in New Issue