aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-30 19:42:18 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-30 19:42:18 -0400
commitfc4b71f2623fe1602d911b71828b8b3f6c0ce0cd (patch)
tree007d68def63aaa99ea81c38ec8700ed011fab9b4
parentc528298bf2375daff4ba8de170870eddf331aa4e (diff)
deleting column no longer messes up drag highlight; removed unecessary documents.ts changes
-rw-r--r--src/client/documents/Documents.ts6
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 1b1608cd5..dabbf9591 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -143,12 +143,7 @@ class ListInfo extends FInfo {
fieldType? = FInfoFieldType.list;
values?: List<any>[] = [];
}
-class MapInfo extends FInfo {
- fieldType? = FInfoFieldType.list;
- values?: List<any>[] = [];
-}
type BOOLt = BoolInfo | boolean;
-type MAPt = MapInfo | Map<any, any>;
type NUMt = NumInfo | number;
type STRt = StrInfo | string;
type LISTt = ListInfo | List<any>;
@@ -234,7 +229,6 @@ export class DocumentOptions {
_lockedTransform?: BOOLt = new BoolInfo('lock the freeform_panx,freeform_pany and scale parameters of the document so that it be panned/zoomed');
_childrenSharedWithSchema?: BOOLt = new BoolInfo("whether this document's children are displayed in its parent schema view", false);
_lockedSchemaEditing?: BOOLt = new BoolInfo("", false);
- _schemaInputs?: LISTt = new ListInfo('user inputs to schema field', false)
dataViz_title?: string;
dataViz_line?: string;
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 1b23e3c40..2f62b1c8d 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -43,6 +43,7 @@ import { DocumentManager } from '../../../util/DocumentManager';
import { TbHemispherePlus } from 'react-icons/tb';
import { docs_v1 } from 'googleapis';
import { SchemaCellField } from './SchemaCellField';
+import { threadId } from 'worker_threads';
const { SCHEMA_NEW_NODE_HEIGHT } = require('../../global/globalCssVariables.module.scss'); // prettier-ignore
@@ -370,6 +371,8 @@ export class CollectionSchemaView extends CollectionSubView() {
const currKeys = this.columnKeys.slice();
currKeys.splice(index, 1);
this.layoutDoc.schema_columnKeys = new List<string>(currKeys);
+
+ this._colEles.splice(index, 1);
};
@action