@stackbit/cms-core 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/content-store.ts
CHANGED
|
@@ -2169,9 +2169,10 @@ export class ContentStore {
|
|
|
2169
2169
|
// filter content only if scope is content, if scope is all ignore objects
|
|
2170
2170
|
if (isPublishingSpecificDocuments) {
|
|
2171
2171
|
const objectIds = objects.map((object) => object.srcObjectId);
|
|
2172
|
+
// also add all images which has 'added' status to the list
|
|
2172
2173
|
publishableObjects = [
|
|
2173
2174
|
..._.filter(documents, (document) => objectIds.includes(document.srcObjectId)),
|
|
2174
|
-
..._.filter(assets, (asset) => objectIds.includes(asset.srcObjectId))
|
|
2175
|
+
..._.filter(assets, (asset) => objectIds.includes(asset.srcObjectId) || asset.status === 'added')
|
|
2175
2176
|
];
|
|
2176
2177
|
} else {
|
|
2177
2178
|
// scope === 'all' or scope === 'content' with empty objects
|