Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Dec 29, 2023
1 parent 36ccab8 commit cc10fd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions packages/survey-vue3-ui/src/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<survey-string :locString="page.locDescription" />
</div>
<survey-errors :element="page" />
<template v-for="(row, index) in rows" :key="page.id + '_' + index">
<template v-for="(row, index) in page.rows" :key="page.id + '_' + index">
<component
:is="(page.getSurvey() as SurveyModel).getRowWrapperComponentName(row)"
v-bind="{
Expand Down Expand Up @@ -38,9 +38,6 @@ useBase(() => props.page);
const showDescription = computed(() => {
return props.page._showDescription;
});
const rows = computed((): Array<any> => {
return props.page.rows;
});
onMounted(() => {
if (props.survey) {
Expand Down
6 changes: 4 additions & 2 deletions packages/survey-vue3-ui/src/Panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
v-if="!element.isCollapsed"
:class="element.cssClasses.panel.content"
>
<template v-for="(row, index) in rows" :key="element.id + '_' + index">
<template
v-for="(row, index) in element.rows"
:key="element.id + '_' + index"
>
<component
:is="(element.getSurvey() as SurveyModel).getRowWrapperComponentName(row)"
v-bind="{
Expand Down Expand Up @@ -53,7 +56,6 @@ const props = defineProps<{
css?: any;
}>();
const root = ref<HTMLElement>(null as any);
const rows = computed(() => props.element.rows);
const survey = computed(() => props.element.survey);
useBase(() => props.element);
Expand Down

0 comments on commit cc10fd3

Please sign in to comment.