Fix import helper

This commit is contained in:
Pieter Vander Vennet 2022-11-16 01:10:13 +01:00
parent 627ae356b9
commit 244882d534
2 changed files with 10 additions and 7 deletions

View file

@ -128,7 +128,7 @@ class MassAction extends Combine {
},
/*
{
// This was a one-off for one of the first imports
// This was a one-off for one of the first imports
value:{
predicate: p => p.status === "open" && p.comments[0].text.split("\n").find(l => l.startsWith("note=")) !== undefined,
action: async p => {
@ -440,7 +440,10 @@ class ImportInspector extends VariableUiElement {
)
}
// We only care about the properties here
const props: NoteProperties[] = notes["success"].features.map((f) => f.properties)
let props: NoteProperties[] = notes["success"].features.map((f) => f.properties)
if(userDetails["uid"]){
props = props.filter(n => n.comments[0].uid === userDetails["uid"])
}
const perBatch: NoteState[][] = Array.from(
ImportInspector.SplitNotesIntoBatches(props).values()
)