diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-18 01:25:39 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-18 01:25:39 -0400 |
| commit | cc3bdef579624d489fa6760733d6f9c31b8f2357 (patch) | |
| tree | 6f24ba051a6e1f7b4b8af47effd67f11627046ee /src/client/views/nodes/trails/PresBox.tsx | |
| parent | 0728e918e6d075c0eda738b7d2fdbf6095c714ae (diff) | |
fixed tab switching instead of bringing up a lightbox when following link to doc in different tab.
Diffstat (limited to 'src/client/views/nodes/trails/PresBox.tsx')
| -rw-r--r-- | src/client/views/nodes/trails/PresBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index 53d72e946..212dfec08 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -701,9 +701,9 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() { changed = true; } } - if ((pinDataTypes?.type_collection && activeItem.config_viewType !== undefined) || (!pinDataTypes && activeItem.config_viewType !== undefined)) { - if (bestTarget._type_collection !== activeItem.config_viewType) { - bestTarget._type_collection = activeItem.config_viewType; + if ((pinDataTypes?.type_collection && activeItem.config_type_collection !== undefined) || (!pinDataTypes && activeItem.config_type_collection !== undefined)) { + if (bestTarget._type_collection !== activeItem.config_type_collection) { + bestTarget._type_collection = activeItem.config_type_collection; changed = true; } } |
