manual lint
This commit is contained in:
parent
1654234e32
commit
1c53ac84cc
36 changed files with 204 additions and 107 deletions
|
|
@ -30,7 +30,11 @@ const storageKey = 'pleroma-fe-drafts'
|
|||
* different keys, which will just pollute the whole storage.
|
||||
* It is indeed best to have backend support for this.
|
||||
*/
|
||||
const getStorageData = async () => (await storage.getItem(storageKey)) || {}
|
||||
const getStorageData = async () =>
|
||||
(await storage.getItem(storageKey)) ||
|
||||
{
|
||||
/* no-op */
|
||||
}
|
||||
|
||||
const saveDraftToStorage = async (draft) => {
|
||||
const currentData = await getStorageData()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue