Skip to content

Commit 4834b40

Browse files
authored
fix a rare race condition (#4755)
1 parent 2d94262 commit 4834b40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* `pnpm: true` option in `app.js` is no longer breaking the application.
1313
* Remove unused `vue-template-compiler` dependency.
1414
* Prevent un-publishing the `@apostrophecms/global` doc and more generally all singletons.
15+
* Correct a race condition that can cause a crash at startup when custom `uploadfs` options are present in some environments.
1516

1617
## 4.8.0 (2024-10-03)
1718

modules/@apostrophecms/asset/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports = {
9494
...globalIcons
9595
};
9696
self.configureBuilds();
97-
self.initUploadfs();
97+
await self.initUploadfs();
9898
self.enableBrowserData();
9999

100100
const {

0 commit comments

Comments
 (0)