houdiniproject / houdini

Free and open source fundraising infrastructure for nonprofits and NGOs
https://houdiniproject.org
Other
186 stars 94 forks source link

[BUG] Adding a gift option breaks campaign #1106

Open BenSturmfels opened 2 years ago

BenSturmfels commented 2 years ago

I can create a campaign by clicking through and adding a name, description etc. The campaign successfully accepts payments. If I then add a gift option, I see a bunch of JavaScript errors in the console, and the donate button no longer works.

The error in the browser console (development mode):

Uncaught TypeError: vnode.data is undefined
    updateEventListeners eventlisteners.js:22
    createElm snabbdom.js:95
    createElm snabbdom.js:88
    createElm snabbdom.js:88
    addVnodes snabbdom.js:113
    updateChildren snabbdom.js:222
    patchVnode snabbdom.js:253
    updateChildren snabbdom.js:183
    patchVnode snabbdom.js:253
    init snabbdom.js:285
    ns index.js:31
    updateStream index.js:492
    updateDeps index.js:528
    updateStreamValue index.js:589
    s index.js:425
    request index.js:34
    request index.js:25
    exports request.js:10
    index gift-option-list.js:41
    init gift-option-list.js:28
    init page.js:51
    js page.js:168
    Webpack 5
eventlisteners.js:22

Perhaps also worth noting that after adding a gift item, the title and description show as blank in the "Manage Gift Options" dialog. May or may not be related.

BenSturmfels commented 1 year ago

@wwahammy if you had a chance, would be great if you could take a look at this one. The gift option would be very useful for T-shirts.