internal: incomplete vault systems behind feature flag (#2340)
This commit is contained in:
@@ -64,6 +64,7 @@ const ClippedNoteView = ({
|
||||
setIsDiscarding(true)
|
||||
application.mutator
|
||||
.deleteItem(note)
|
||||
.then(() => application.sync.sync())
|
||||
.then(() => {
|
||||
if (isFirefoxPopup) {
|
||||
window.close()
|
||||
@@ -73,7 +74,7 @@ const ClippedNoteView = ({
|
||||
.catch(console.error)
|
||||
.finally(() => setIsDiscarding(false))
|
||||
}
|
||||
}, [application.mutator, clearClip, isFirefoxPopup, note])
|
||||
}, [application.mutator, application.sync, clearClip, isFirefoxPopup, note])
|
||||
|
||||
return (
|
||||
<div className="">
|
||||
|
||||
@@ -217,7 +217,7 @@ const ClipperView = ({
|
||||
references: [],
|
||||
})
|
||||
|
||||
const insertedNote = await application.items.insertItem(note)
|
||||
const insertedNote = await application.mutator.insertItem(note)
|
||||
|
||||
if (defaultTagRef.current) {
|
||||
await application.linkingController.linkItems(insertedNote, defaultTagRef.current)
|
||||
@@ -237,6 +237,7 @@ const ClipperView = ({
|
||||
}, [
|
||||
application.items,
|
||||
application.linkingController,
|
||||
application.mutator,
|
||||
application.sync,
|
||||
clipPayload,
|
||||
defaultTagRef,
|
||||
|
||||
Reference in New Issue
Block a user