forked from extern/easydiffusion
Fix a bug where a null value for custom modifiers would break
This commit is contained in:
parent
93bf93d3a1
commit
a53bac1a94
@ -263,7 +263,7 @@
|
||||
<script src="media/js/plugins.js?v=1"></script>
|
||||
<script src="media/js/utils.js?v=3"></script>
|
||||
<script src="media/js/inpainting-editor.js?v=1"></script>
|
||||
<script src="media/js/image-modifiers.js?v=1"></script>
|
||||
<script src="media/js/image-modifiers.js?v=2"></script>
|
||||
<script src="media/js/auto-save.js?v=1"></script>
|
||||
<script src="media/js/main.js?v=3"></script>
|
||||
<script src="media/js/themes.js?v=1"></script>
|
||||
|
@ -270,7 +270,7 @@ function loadCustomModifiers() {
|
||||
customModifiersGroupElement.remove()
|
||||
}
|
||||
|
||||
if (customModifiers.trim() !== '') {
|
||||
if (customModifiers && customModifiers.trim() !== '') {
|
||||
customModifiers = customModifiers.split('\n')
|
||||
customModifiers = customModifiers.filter(m => m.trim() !== '')
|
||||
customModifiers = customModifiers.map(function(m) {
|
||||
|
Loading…
Reference in New Issue
Block a user