vipzhicheng / logseq-plugin-move-block

A Logseq plugin help you copy or cut blocks to anywhere you want.
https://www.vipzhicheng.com/logseq-plugin-move-block/
Other
48 stars 6 forks source link

Crash when attempting to move to page that does not exist #20

Open coderamm opened 8 months ago

coderamm commented 8 months ago

Observed behavior When the plugin is used to move highlighted blocks to a page, the plugin opens and prompts the user to select the target page. When the name of a page which doesn't already exist in the graph is manually entered, Logseq becomes unresponsive.

image

Expected behavior A new page with the user entered name must be created and the blocks should be moved to this new page.

Alternate solution The Move Block plugin must show an error to let the user know that the page does not exist

Logseq v0.10.3 Current Revision: [c491914] Move Block v0.1.0

vipzhicheng commented 4 months ago

I think I have fixed the issue. Please upgrade the plugin and take a look.