Correcting contents rendering.

This commit is contained in:
mike12345567 2022-10-20 12:47:45 +01:00
parent 9dbe5c2313
commit 53788789d7
4 changed files with 8 additions and 10 deletions

View File

@ -6,7 +6,7 @@
<div class="cell">
<Icon name="JourneyVoyager" />
<div>{value?.length}</div>
<div>{value}</div>
</div>
<style>

View File

@ -3,11 +3,11 @@
ActionButton,
DatePicker,
Layout,
Modal,
notifications,
Pagination,
Select,
Table,
Modal,
} from "@budibase/bbui"
import { backups } from "stores/portal"
import { createPaginationStore } from "helpers/pagination"
@ -32,9 +32,9 @@
$: fetchBackups(app.instance._id, trigger, page)
const triggers = {
PUBLISH: "Publish",
SCHEDULED: "Scheduled",
MANUAL: "Manual",
PUBLISH: "publish",
SCHEDULED: "scheduled",
MANUAL: "manual",
}
const schema = {
@ -79,15 +79,13 @@
]
function flattenBackups(backups) {
let flattened = backups.map(backup => {
return backups.map(backup => {
return {
...backup,
days: getDaysBetween(backup.createdAt),
//...Object.assign(...backup?.contents),
}
})
return flattened
}
function getDaysBetween(date) {

View File

@ -6,7 +6,7 @@
<div class="cell">
<Icon name="Data" />
<div>{value?.length}</div>
<div>{value}</div>
</div>
<style>

View File

@ -6,7 +6,7 @@
<div class="cell">
<Icon name="WebPage" />
<div>{value?.length}</div>
<div>{value}</div>
</div>
<style>