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"> <div class="cell">
<Icon name="JourneyVoyager" /> <Icon name="JourneyVoyager" />
<div>{value?.length}</div> <div>{value}</div>
</div> </div>
<style> <style>

View File

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

View File

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

View File

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