File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -323,15 +323,15 @@ public function deserializeArray(array $pollConfiguration): self {
323323 $ this ->setAllowComment ($ pollConfiguration ['allowComment ' ] ?? $ this ->getAllowComment ());
324324 $ this ->setAllowMaybe ($ pollConfiguration ['allowMaybe ' ] ?? $ this ->getAllowMaybe ());
325325 $ chosenRank = $ pollConfiguration ['chosenRank ' ] ?? $ this ->getChosenRank ();
326- if (is_array ($ chosenRank )) {
327- $ chosenRank = json_encode ($ chosenRank ); // explicit serialisation
328- } elseif (is_string ($ chosenRank )) {
329- if (!json_decode ($ chosenRank )) {
330- $ chosenRank = '[] ' ;
331- }
332- } else {
326+ if (is_array ($ chosenRank )) {
327+ $ chosenRank = json_encode ($ chosenRank ); // explicit serialisation
328+ } elseif (is_string ($ chosenRank )) {
329+ if (!json_decode ($ chosenRank )) {
333330 $ chosenRank = '[] ' ;
334331 }
332+ } else {
333+ $ chosenRank = '[] ' ;
334+ }
335335 $ this ->setChosenRank ($ chosenRank );
336336 $ this ->setAllowProposals ($ pollConfiguration ['allowProposals ' ] ?? $ this ->getAllowProposals ());
337337 $ this ->setAnonymousSafe ($ pollConfiguration ['anonymous ' ] ?? $ this ->getAnonymous ());
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ async function setVote() {
8181async function handleRankSelected(event ){
8282 const selectElement = event .target
8383 const rank = selectElement .value
84- console .log (' rank' ,rank ,' event' ,event )
8584 try {
8685 await votesStore .set ({
8786 option ,
You can’t perform that action at this time.
0 commit comments