We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75e8ae1 commit 55febe4Copy full SHA for 55febe4
src/org-binder/org-task-runner.ts
@@ -26,14 +26,16 @@ export class TaskRunner {
26
await task.perform(task);
27
task.done = true;
28
if (task.result) {
29
- if ('PhysicalId' in task.result) {
30
- line += ` (${task.result.PhysicalId})`;
+ if (typeof task.result !== 'object'){
+ line += ` (${task.result})`;
31
+ } else if ('PhysicalId' in task.result) {
32
+ if (task.result.PhysicalId !== undefined) {
33
+ line += ` (${task.result.PhysicalId})`;
34
+ }
35
} else if ('commercial' in task.result) {
36
if (task.result.commercial !== undefined) {
37
line += ` (${task.result.commercial})`;
38
}
- } else if (typeof task.result !== 'object'){
- line += ` (${task.result})`;
39
40
41
0 commit comments