refactor: normalize filetree upload target plans
This commit is contained in:
@@ -3188,6 +3188,10 @@ const SIDEBAR_TREE_JS: &str = r##"
|
||||
}
|
||||
try {
|
||||
var plan = await preflightFileTreeUploadTarget(detail || {});
|
||||
var normalizePlanRuntime = fileTreeRuntimeFunction('normalizeFileTreeUploadTargetPlan');
|
||||
if (normalizePlanRuntime) {
|
||||
return normalizePlanRuntime(detail || {}, plan);
|
||||
}
|
||||
if (detail && Object.prototype.hasOwnProperty.call(detail, 'targetRelativePath')) {
|
||||
plan.targetRelativePath = String(detail.targetRelativePath || '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user