Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
fix(ui): snapshot content not updated after update
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 24, 2022
1 parent 14adba6 commit 465c9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/peeky-client/src/features/snapshot/SnapshotView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const showPreview = computed(() => isHtml.value && isEnvDom.value)
/>
<CodeEditor
v-else
:code="snapshot.content"
:code="!snapshot.failed && snapshot.newContent ? snapshot.newContent : snapshot.content"
class="h-full"
/>
</template>
Expand All @@ -214,7 +214,7 @@ const showPreview = computed(() => isHtml.value && isEnvDom.value)
class="h-full flex items-stretch divide-x divide-gray-100 dark:divide-gray-900"
>
<iframe
:srcdoc="getIframeHtml(snapshot.content, props.test.previewImports)"
:srcdoc="getIframeHtml(!snapshot.failed && snapshot.newContent ? snapshot.newContent : snapshot.content, props.test.previewImports)"
class="flex-1 min-w-0 min-h-0 h-full"
/>
<iframe
Expand Down

0 comments on commit 465c9de

Please sign in to comment.