Display survey template and categories on column edit screens
#ADA-2513
let surveyTemplateCall;
$: {
- if (column?.columnEntityReference?.id && column?.columnEntityReference?.kind === entity.MEASURABLE.key) {
+ if (column?.columnEntityReference?.id) {
+ if (column?.columnEntityReference?.kind === entity.MEASURABLE.key) {
measurableCall = measurableStore.getById(column?.columnEntityReference?.id);
- } else if (column?.columnEntityReference?.id && column?.columnEntityReference?.kind === entity.SURVEY_QUESTION.key) {
+ } else if (column?.columnEntityReference?.kind === entity.SURVEY_QUESTION.key) {
surveyTemplateCall = surveyTemplateStore.getByQuestionId(column?.columnEntityReference?.id);
}
}
+ }
$: {
if (measurable?.categoryId) {
