Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
seancolsen committed Jul 24, 2024
1 parent f553c0c commit f17ed79
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
$: allowedTypeConversions = getAllowedAbstractTypesForDbTypeAndItsTargetTypes(
column.type,
column.valid_target_types ?? [],
// TODO_BETA
//
// We need to find another way to get the valid target types for a column
// since the RPC API no longer returns this.
// column.valid_target_types ?? [],
[],
$currentDbAbstractTypes.data,
).filter((item) => !['jsonlist', 'map'].includes(item.identifier));
Expand Down
2 changes: 1 addition & 1 deletion mathesar_ui/src/stores/table-data/TableStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { ConstraintsData } from './constraints';
import { ConstraintsDataStore } from './constraints';
import type { ProcessedColumnsStore } from './processedColumns';
import { processColumn } from './processedColumns';
import { Connection } from '@mathesar/api/rpc/connections';
import type { Connection } from '@mathesar/api/rpc/connections';

export interface TableStructureProps {
connection: Pick<Connection, 'id'>;
Expand Down
2 changes: 1 addition & 1 deletion mathesar_ui/src/stores/table-data/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
type ColumnCreationSpec,
type ColumnPatchSpec,
} from '@mathesar/api/rpc/columns';
import { Connection } from '@mathesar/api/rpc/connections';
import type { Connection } from '@mathesar/api/rpc/connections';

export class ColumnsDataStore extends EventHandler<{
columnRenamed: void;
Expand Down
2 changes: 1 addition & 1 deletion mathesar_ui/src/stores/table-data/tabularData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type { ProcessedColumnsStore } from './processedColumns';
import { processColumn } from './processedColumns';
import type { TableRecordsData } from './records';
import { RecordsData } from './records';
import { Connection } from '@mathesar/api/rpc/connections';
import type { Connection } from '@mathesar/api/rpc/connections';

export interface TabularDataProps {
connection: Pick<Connection, 'id'>;
Expand Down

0 comments on commit f17ed79

Please sign in to comment.