mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 16:01:42 +00:00
nit
This commit is contained in:
@@ -40,11 +40,14 @@
|
||||
filename: string
|
||||
}
|
||||
| undefined = undefined
|
||||
let hadInitialValue = false
|
||||
|
||||
init()
|
||||
|
||||
function init() {
|
||||
if (initialValue) {
|
||||
if (initialValue?.s3) {
|
||||
if (!$fileUploads.find((fileUpload) => fileUpload.path === initialValue?.s3)) {
|
||||
hadInitialValue = true
|
||||
$fileUploads = [
|
||||
...$fileUploads,
|
||||
{
|
||||
@@ -57,6 +60,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$: !initialValue?.s3 && hadInitialValue && ($fileUploads = [])
|
||||
|
||||
export let computeForceViewerPolicies:
|
||||
| (() =>
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user