Added deletion to news-editor.jsx

Resovled #6
This commit is contained in:
2021-03-12 13:58:14 +11:00
parent 8a920c5316
commit e930fd2173
2 changed files with 33 additions and 2 deletions
@@ -69,9 +69,9 @@ const TokenProvider = props => {
//finally, delegate to fetch
return fetch(url, {
...options,
...(options || {}),
headers: {
...options.headers,
...(options || { headers: {} }).headers,
'Authorization': `Bearer ${bearer}`
}
});