Fix references

This commit is contained in:
Adria Navarro 2023-11-17 15:40:26 +01:00
parent 9a097c37f2
commit f70bb967e6
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,7 @@
<script> <script>
import Field from "./Field.svelte" import Field from "./Field.svelte"
import { CoreDropzone, ProgressCircle } from "@budibase/bbui" import { CoreDropzone, ProgressCircle, Helpers } from "@budibase/bbui"
import { getContext, onMount, onDestroy } from "svelte" import { getContext, onMount, onDestroy } from "svelte"
import { cloneDeep } from "@budibase/bbui/src/helpers"
export let datasourceId export let datasourceId
export let bucket export let bucket
@ -99,8 +98,9 @@
} }
const handleChange = e => { const handleChange = e => {
debugger
localFiles = e.detail localFiles = e.detail
let files = cloneDeep(e.detail) || [] let files = Helpers.cloneDeep(e.detail) || []
// remove URL as it contains the full base64 image data // remove URL as it contains the full base64 image data
files.forEach(file => { files.forEach(file => {
if (file.type?.startsWith("image")) { if (file.type?.startsWith("image")) {