Add optional chaining for file.parent access in ConformancePage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -97,11 +97,11 @@ let loadingTimerId = null;
|
||||
} else {
|
||||
switch (params.type) {
|
||||
case "log":
|
||||
conformanceLogId.value = file.parent.id;
|
||||
conformanceLogId.value = file.parent?.id;
|
||||
conformanceFileName.value = file.name;
|
||||
break;
|
||||
case "filter":
|
||||
conformanceFilterId.value = file.parent.id;
|
||||
conformanceFilterId.value = file.parent?.id;
|
||||
conformanceFileName.value = file.name;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user