removed a slash before the ? for the url params that may have been the cause of iOS devices using safari to trigger an error when calling updatedComponentPreferences in the binAPI

This commit is contained in:
csawatzky 2026-02-17 16:40:23 -06:00
parent edf865752d
commit 24c157747c

View file

@ -290,7 +290,7 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
) => { ) => {
const view = otherTeam ? otherTeam : as const view = otherTeam ? otherTeam : as
let url = "/bins/" + bin + "/updateComponent/" + component + "/preferences"; let url = "/bins/" + bin + "/updateComponent/" + component + "/preferences";
if (view) url = url + "/?as=" + view; if (view) url = url + "?as=" + view;
interface request { interface request {
preferences: Object; preferences: Object;
} }