Boolean parameter value mismatch when using initialParameterValues

We’re using initialParameterValuesoften when creating a session and one thing I noticed is the following:

const session = await createSession({
  ticket: shapeDiverTicketId,
  modelViewUrl: MODEL_VIEW_URL,
  id: "shapediver-session",
  initialParameterValues: {"1282b4a2-f17d-4d51-90f1-31548622d16e": "false"}
});

console.log("1282b4a2-f17d-4d51-90f1-31548622d16e:", session.parameters['1282b4a2-f17d-4d51-90f1-31548622d16e'].value);
// logs true 

The boolean parameter I’m parsing in initialParameterValues is being set correctly in the viewer (visually looks correct in the viewer) but the session object parameter value is always true

All other parameter types seem to be working fine.

I’m using "@shapediver/viewer.session": "3.15.4"

Not sure if I’m doing something wrong or is that a bug. Are you able to reproduce it?

Hello @Sebastian_Meckovski

I just deployed version 3.15.5 which resolves this issue.

Cheers, Michael

1 Like