mirror of
https://github.com/directus/directus.git
synced 2026-01-28 18:18:10 -05:00
Fix rendering assets with no settings
This commit is contained in:
@@ -79,7 +79,10 @@ router.get(
|
||||
];
|
||||
|
||||
// For use in the next request handler
|
||||
res.locals.shortcuts = [...SYSTEM_ASSET_ALLOW_LIST, ...assetSettings.storage_asset_presets];
|
||||
res.locals.shortcuts = [
|
||||
...SYSTEM_ASSET_ALLOW_LIST,
|
||||
...(assetSettings.storage_asset_presets || []),
|
||||
];
|
||||
res.locals.transformation = transformation;
|
||||
|
||||
if (Object.keys(transformation).length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user