forked from extern/easydiffusion
Merge pull request #924 from patriceac/patch-37
Allow modifier images to be passed as base64 images
This commit is contained in:
commit
4bc7bca60d
@ -80,7 +80,7 @@ function createModifierGroup(modifierGroup, initiallyExpanded, removeBy) {
|
|||||||
|
|
||||||
modifiers.forEach(modObj => {
|
modifiers.forEach(modObj => {
|
||||||
const modifierName = modObj.modifier
|
const modifierName = modObj.modifier
|
||||||
const modifierPreviews = modObj?.previews?.map(preview => `${modifierThumbnailPath}/${preview.path}`)
|
const modifierPreviews = modObj?.previews?.map(preview => `${IMAGE_REGEX.test(preview.image) ? preview.image : modifierThumbnailPath + '/' + preview.path}`)
|
||||||
|
|
||||||
const modifierCard = createModifierCard(modifierName, modifierPreviews, removeBy)
|
const modifierCard = createModifierCard(modifierName, modifierPreviews, removeBy)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user