File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
packages/@dcl/inspector/src/components
EntityInspector/AudioSourceInspector Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ export const fromAudioSource =
13
13
audioClipUrl : removeBasePath ( base , value . audioClipUrl ) ,
14
14
loop : value . loop ,
15
15
playing : value . playing ,
16
- volume : volumeFromAudioSource ( value . volume )
16
+ volume : volumeFromAudioSource ( value . volume ) ,
17
+ global : value . global
17
18
}
18
19
}
19
20
@@ -24,7 +25,8 @@ export const toAudioSource =
24
25
audioClipUrl : base ? base + '/' + value . audioClipUrl : value . audioClipUrl ,
25
26
loop : value . loop ,
26
27
playing : value . playing ,
27
- volume : volumeToAudioSource ( value . volume )
28
+ volume : volumeToAudioSource ( value . volume ) ,
29
+ global : value . global
28
30
}
29
31
}
30
32
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ const FileUploadField: React.FC<Props> = ({
176
176
label = { label }
177
177
onChange = { handleChangeTextField }
178
178
value = { removeBase ( path ) }
179
- error = { hasError }
179
+ error = { ! ! value && hasError }
180
180
disabled = { disabled }
181
181
drop = { isHover }
182
182
autoSelect
@@ -188,7 +188,7 @@ const FileUploadField: React.FC<Props> = ({
188
188
</ button >
189
189
) }
190
190
</ div >
191
- { hasError && < Message text = { errorMessage } type = { MessageType . ERROR } /> }
191
+ { ! ! value && hasError && < Message text = { errorMessage } type = { MessageType . ERROR } /> }
192
192
</ div >
193
193
)
194
194
}
You can’t perform that action at this time.
0 commit comments