mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 11:15:14 +00:00
Merge pull request #608 from cudr/preload_return_fix
Don't crash if preload return empty
This commit is contained in:
@@ -225,7 +225,7 @@ export function get_page_handler(
|
||||
|
||||
props[`level${l++}`] = {
|
||||
component: part.component,
|
||||
props: preloaded[i + 1],
|
||||
props: preloaded[i + 1] || {},
|
||||
segment: segments[i]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user