Skip to content

Commit

Permalink
fix: provided a key attribute to force refresh prism component on re-…
Browse files Browse the repository at this point in the history
…renders (#894)

Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Feb 15, 2024
1 parent 95a78a4 commit cb6c252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/values/SourceCodeValue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class="mt-2 h-code-box h-has-page-background" style="max-height: 400px;">
<template v-for="(file, index) in sourceFiles">
<p v-if="isFiltered(file)" class="pt-2 mx-3 h-is-extra-text">{{ file.name }}</p>
<prism v-if="isFiltered(file)" language="solidity" style="background-color: #171920; font-size: 0.7rem">
<prism v-if="isFiltered(file)" :key="file.name" language="solidity" style="background-color: #171920; font-size: 0.7rem">
<pre>{{ file.content }}</pre>
</prism>
<hr v-if="filter==='' && index < sourceFiles.length - 1" class="has-background-grey-dark m-0" style="height: 0.5px"/>
Expand Down

0 comments on commit cb6c252

Please sign in to comment.