From 3a703b0bd073f9f5e83125998360c82e3263b344 Mon Sep 17 00:00:00 2001 From: JustinKol <144163838+JustinKol@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:12:42 -0400 Subject: [PATCH] Explorer null handling (#1658) * Cassandra null value handling * prettier run * Added boolean and date * Reverted null handling switch statement and added editing warning * ran prettier * putting new line back in * prettier run * changed warning message * updated snapshot * fixed undefined condition * removed toString from undefined --- src/Explorer/Panes/Tables/EditTableEntityPanel.tsx | 3 +++ .../__snapshots__/EditTableEntityPanel.test.tsx.snap | 11 +++++++++++ src/Explorer/Tables/TableDataClient.ts | 5 ++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Panes/Tables/EditTableEntityPanel.tsx b/src/Explorer/Panes/Tables/EditTableEntityPanel.tsx index 2bfca70b7..be2f982e0 100644 --- a/src/Explorer/Panes/Tables/EditTableEntityPanel.tsx +++ b/src/Explorer/Panes/Tables/EditTableEntityPanel.tsx @@ -390,6 +390,9 @@ export const EditTableEntityPanel: FunctionComponent )} +
+ Warning: Null fields will not be displayed for editing. +
); }; diff --git a/src/Explorer/Panes/Tables/__snapshots__/EditTableEntityPanel.test.tsx.snap b/src/Explorer/Panes/Tables/__snapshots__/EditTableEntityPanel.test.tsx.snap index 89b9f5786..5ced137c3 100644 --- a/src/Explorer/Panes/Tables/__snapshots__/EditTableEntityPanel.test.tsx.snap +++ b/src/Explorer/Panes/Tables/__snapshots__/EditTableEntityPanel.test.tsx.snap @@ -355,6 +355,17 @@ exports[`Excute Edit Table Entity Pane should render Default properly 1`] = ` +
+ Warning: Null fields will not be displayed for editing. +