chore(deps): update module github.com/coreos/go-oidc to v3 - autoclosed #17
@ -17,7 +17,7 @@
|
||||
proposal_idx[proposal.id] = new String(data.labels.length - 1);
|
||||
}
|
||||
|
||||
req_responses = refreshResponses();
|
||||
req_responses = question.getResponses();
|
||||
req_responses.then((responses) => {
|
||||
for (const res of responses) {
|
||||
data.datasets[0].values[proposal_idx[res.value]] += 1;
|
||||
@ -27,9 +27,27 @@
|
||||
|
||||
return req;
|
||||
}
|
||||
let req_proposals = refreshProposals();
|
||||
let req_proposals = null;
|
||||
let req_responses = null;
|
||||
|
||||
if (question.kind == "int") {
|
||||
req_responses = question.getResponses();
|
||||
req_responses.then((responses) => {
|
||||
const proposal_idx = { };
|
||||
for (const res of responses) {
|
||||
if (proposal_idx[res.value]) {
|
||||
data.datasets[0].values[proposal_idx[res.value]] += 1;
|
||||
} else {
|
||||
data.labels.push(res.value);
|
||||
data.datasets[0].values.push(1);
|
||||
proposal_idx[res.value] = new String(data.labels.length - 1);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
req_proposals = refreshProposals();
|
||||
}
|
||||
|
||||
let data = {
|
||||
labels: [],
|
||||
datasets: [
|
||||
|
@ -108,7 +108,7 @@
|
||||
{/if}
|
||||
</button>
|
||||
{/if}
|
||||
{#if question.kind == "ucq" || question.kind == "mcq"}
|
||||
{#if question.kind == "ucq" || question.kind == "mcq" || question.kind == "int"}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm float-end mx-1"
|
||||
|
Reference in New Issue
Block a user