Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

Loading more marks does not work properly #278

Closed

Description

Version: 2020.3

Step to reproduce:

  1. Add 31 marks
    1

  2. Go back to the top and refresh the page

  3. Back to the bottom, the last mark disappeared
    2

  4. Add another mark (Total: 32)

  5. The previous mark is disappeared
    3

In addition, the last loaded mark cannot be edited.

Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at unmark.show_mark_info (unmark.loggedin.js?v=2020.3:163)
    at HTMLAnchorElement.<anonymous> (unmark.loggedin.js?v=2020.3:364)
    at HTMLDocument.dispatch (jquery-2.1.0.min.js:3)
    at HTMLDocument.y.handle (jquery-2.1.0.min.js:3)
function(k) {
    var p = 0;
    unmark.show_mark_info = function(a) {
        var e, n = a.data("mark"), t = k("#" + n).html(), r = jQuery.parseJSON(t), s = n.replace("mark-data-", ""), o = k("#mark-" + s).find(".note-placeholder").text(), l = (a.data("nofade"),
        null != r.mark_title ? r.mark_title : r.title);
        r.mark_title = l;
        var u = ""
          , d = Object.keys(r.tags).length <---------

Loaded marks:

{
"lookup_type":"all",
"marks":{
"0":{
"mark_id":"2",
"mark_title":null,
"notes":null,
"active":"1",
"created_on":"2020-11-23 18:15:12",
"archived_on":null,
"title":"Step 2: Watch a video walkthrough of Unmark",
"url":"https:\/\/www.notion.so\/cdevroe\/Unmark-Help-Video-walkthrough-of-Unmark-UI-e5efd1ed5eaf42298e67fb087e476f33",
"embed":null,
"label_id":"3",
"label_name":"Watch",
"tags":{
},
"nice_time":"23 minutes ago"
},
"1":{
"mark_id":"3",
"mark_title":null,
"notes":null,
"active":"1",
"created_on":"2020-11-23 18:15:12",
"archived_on":null,
"title":"Step 3: Discover new bookmarks",
"url":"https:\/\/www.notion.so\/cdevroe\/Unmark-Help-Discover-featured-bookmarks-2091a6b3871c4b29a209b72d5c3e9bca",
"embed":null,
"label_id":"7",
"label_name":"Do",
"tags":{
},
"nice_time":"23 minutes ago"
}
},
"page":"2",
"pages":2,
"per_page":30,
"total":32

Activity

  1. cdevroe commented on Dec 27, 2021

    @cdevroe
    Owner

    It looks like you might have found a bug with the infinite scroll page loading. It appears to be working on mobile, but not on Desktop. I'm going to see if I can verify this.

  2. self-assigned this
    on Dec 27, 2021
  3. cdevroe commented on Dec 31, 2021

    @cdevroe
    Owner

    I dug into this a little, I am wondering if this only happens at certain viewport sizes. Unmark does some antiquated things with how it loads more marks... I think it'd be good to perhaps have this completely redone in the future. But for now, if someone has exactly 32 marks and a certain viewport size, it may just have to continue to have this bug. Unfortunately.

  4. cdevroe commented on Oct 3, 2025

    @cdevroe
    Owner

    To help with this issue we'll adjust the limit from 30 to 50. It doesn't solve it but in order to solve this it likely needs to be rethought.

  5. added this to the 2025.2 milestone on Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions