Fix access to null variable

This commit is contained in:
nemunaire 2022-09-06 17:00:44 +02:00
parent 12a0777886
commit 86cc2cad4a

View File

@ -94,7 +94,7 @@
kind={question.kind} kind={question.kind}
{proposals} {proposals}
readonly readonly
live={survey.direct !== null} live={survey && survey.direct !== null}
{corrections} {corrections}
bind:value={value} bind:value={value}
on:change={() => { dispatch("change"); }} on:change={() => { dispatch("change"); }}
@ -113,7 +113,7 @@
kind={question.kind} kind={question.kind}
{proposals} {proposals}
{readonly} {readonly}
live={survey.direct !== null} live={survey && survey.direct !== null}
{corrections} {corrections}
bind:value={value} bind:value={value}
on:change={() => { dispatch("change"); }} on:change={() => { dispatch("change"); }}