Make sure all images are updated on Global Blocks.
This commit is contained in:
+1
-1
@@ -248,7 +248,7 @@ export async function isFileEmpty(filePath, ignoreComments = false) {
|
|||||||
|
|
||||||
export function replaceNames(content, images, uploadedImages) {
|
export function replaceNames(content, images, uploadedImages) {
|
||||||
images.forEach((image, index) => {
|
images.forEach((image, index) => {
|
||||||
content = content.replace(image, uploadedImages[index].fileName);
|
content = content.replaceAll(image, uploadedImages[index].fileName);
|
||||||
});
|
});
|
||||||
|
|
||||||
return content;
|
return content;
|
||||||
|
|||||||
Reference in New Issue
Block a user