Skip to content

Commit

Permalink
Don't allow linking to/from proxy columns
Browse files Browse the repository at this point in the history
- It just gets weird
  • Loading branch information
mofojed committed Dec 7, 2023
1 parent e3667e5 commit f137935
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@deephaven/grid';
import type { Column } from '@deephaven/jsapi-types';
import { IrisGrid } from '../IrisGrid';
import { DisplayColumn } from '../IrisGridModel';

/**
* Handles interaction with tables when the Linker tool is active
Expand All @@ -25,8 +26,8 @@ class IrisGridColumnSelectMouseHandler extends GridMouseHandler {
return isSelectingColumn;
}

private isValidColumn(tableColumn: Column | null): boolean {
if (tableColumn == null) {
private isValidColumn(tableColumn: DisplayColumn | null): boolean {
if (tableColumn == null || tableColumn.isProxy === true) {
return false;
}

Expand Down

0 comments on commit f137935

Please sign in to comment.