sawhney17 / logseq-smartblocks

MIT License
171 stars 12 forks source link

Random Function Smartblock Button Returning Undefined #41

Closed Gorpokki closed 1 year ago

Gorpokki commented 1 year ago

Using Logseq v0.8.7 and logseq-smartblocks v3.5.0.

Given the following definition: image

The button now returns this instead of a random block: image

sawhney17 commented 1 year ago

Are you by chance in a journal page. Does clicking the title to open the page in fulls green work? On 16 Sep 2022 at 6:50 AM +0400, Gorpokki @.***>, wrote:

Given the following definition: The button now returns this instead of a random block: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Gorpokki commented 1 year ago

Are you by chance in a journal page. Does clicking the title to open the page in fulls green work? On 16 Sep 2022 at 6:50 AM +0400, Gorpokki @.>, wrote: Given the following definition: The button now returns this instead of a random block: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

Yes, using the button on a journal page. Opening the full page and trying to use the button gives the same result.

Additionally, trying to call the smartblock from a slash command also returns an ((undefined))

sawhney17 commented 1 year ago

Can you replicate this on another page. Like a plain page called "Smartblcoks" On 16 Sep 2022 at 4:41 PM +0400, Gorpokki @.***>, wrote:

Are you by chance in a journal page. Does clicking the title to open the page in fulls green work? … On 16 Sep 2022 at 6:50 AM +0400, Gorpokki @.>, wrote: Given the following definition: The button now returns this instead of a random block: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> Yes, using the button on a journal page. Opening the full page and trying to use the button uses the same result. Additionally, trying to call the smartblock from a slash command also returns an undefined — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Gorpokki commented 1 year ago

Can you replicate this on another page. Like a plain page called "Smartblcoks" On 16 Sep 2022 at 4:41 PM +0400, Gorpokki @.>, wrote: > Are you by chance in a journal page. Does clicking the title to open the page in fulls green work? > … > On 16 Sep 2022 at 6:50 AM +0400, Gorpokki @.>, wrote: Given the following definition: The button now returns this instead of a random block: — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.> Yes, using the button on a journal page. Opening the full page and trying to use the button uses the same result. Additionally, trying to call the smartblock from a slash command also returns an undefined — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

Same result, ((undefined))

wirtzdan commented 1 year ago

Same for me! Also using it on the journal page.

sawhney17 commented 1 year ago

Found the issue. Will push a release within the hour.

sawhney17 commented 1 year ago

Try the latest update .