refac
This commit is contained in:
@@ -116,13 +116,7 @@
|
|||||||
]
|
]
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
items = [
|
items = [...notes, ...collections, ...legacy_collections].map((item) => {
|
||||||
...notes,
|
|
||||||
...collections,
|
|
||||||
...collection_files,
|
|
||||||
...legacy_collections,
|
|
||||||
...legacy_documents
|
|
||||||
].map((item) => {
|
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
...(item?.legacy || item?.meta?.legacy || item?.meta?.document ? { legacy: true } : {})
|
...(item?.legacy || item?.meta?.legacy || item?.meta?.document ? { legacy: true } : {})
|
||||||
|
|||||||
Reference in New Issue
Block a user