diff --git a/app/client/src/ce/constants/messages.ts b/app/client/src/ce/constants/messages.ts index 9078c9b83b6..4ce0f78c95d 100644 --- a/app/client/src/ce/constants/messages.ts +++ b/app/client/src/ce/constants/messages.ts @@ -580,6 +580,7 @@ export const WELCOME_TOUR_STICKY_BUTTON_TEXT = () => "Next mission"; // Data Sources pane export const EMPTY_ACTIVE_DATA_SOURCES = () => "No active datasources found."; +export const SCHEMA_NOT_AVAILABLE = () => "Schema not available"; export const SNIPPET_EXECUTION_SUCCESS = () => `Snippet executed successfully.`; diff --git a/app/client/src/pages/Editor/Explorer/Datasources/DatasourceStructureContainer.tsx b/app/client/src/pages/Editor/Explorer/Datasources/DatasourceStructureContainer.tsx index 587140c45d6..72bc624458b 100644 --- a/app/client/src/pages/Editor/Explorer/Datasources/DatasourceStructureContainer.tsx +++ b/app/client/src/pages/Editor/Explorer/Datasources/DatasourceStructureContainer.tsx @@ -1,3 +1,7 @@ +import { + createMessage, + SCHEMA_NOT_AVAILABLE, +} from "@appsmith/constants/messages"; import { DatasourceStructure as DatasourceStructureType, DatasourceTable, @@ -42,7 +46,7 @@ const Container = (props: Props) => { props.datasourceStructure.error && props.datasourceStructure.error.message ? props.datasourceStructure.error.message - : "No information available"} + : createMessage(SCHEMA_NOT_AVAILABLE)} ); }