Band-aid fix for #189. I think the issue stems from trying to access ui_config before it has been set. By moving getSetting('ui_config') into the component, it has more chances to get ui_config after it has been set. Still not a perfect solution since there is still a race condition here, but the upload card has shown up on the first time for me every time now.
A better solution would be to have a context that manages all the config options so the pages auto re-render once the config options have been fetched from the backend.
Thanks for this, I'm going to merge to the dev branch first to verify nothing is broken (I don't see how anything would be) and then I'll merge to main for a release.
Band-aid fix for #189. I think the issue stems from trying to access
ui_config
before it has been set. By movinggetSetting('ui_config')
into the component, it has more chances to getui_config
after it has been set. Still not a perfect solution since there is still a race condition here, but the upload card has shown up on the first time for me every time now.A better solution would be to have a context that manages all the config options so the pages auto re-render once the config options have been fetched from the backend.