Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Handle new Notion's databases #26

Open
Tracked by #28
mathix420 opened this issue Mar 18, 2022 Discussed in #25 · 0 comments
Open
Tracked by #28

Handle new Notion's databases #26

mathix420 opened this issue Mar 18, 2022 Discussed in #25 · 0 comments
Labels
bug Something isn't working

Comments

@mathix420
Copy link
Owner

Discussed in #25

Originally posted by Ravie13 March 18, 2022
Hi there - this looks like just the code I need!
I followed the directions for a private notion page and ran it but I'm getting errors in the console. I'm wondering if it is because of the recent Notion Database updates?

Failed to load resource: the server responded with a status of 500 ()
(index):203 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
    at (index):203:34

At that index in the code this is the function:


 json.columns.map(function (column) {
                        const opt = document.createElement('option');
                        opt.innerText = column.name;
                        opt.value = column.id;
                        return opt;
                    }).forEach(function (child) {
                        fields.appendChild(child);
                        firstColumnSav = firstColumn.cloneNode(true);
                        firstColumnSav.querySelector('input').value = '';
                    });
```</div>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant