Skip to content

Commit

Permalink
chore: update error message for no schema available for a datasource (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
ganganimaulik committed May 11, 2022
1 parent f344688 commit 7856d82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import {
createMessage,
SCHEMA_NOT_AVAILABLE,
} from "@appsmith/constants/messages";
import {
DatasourceStructure as DatasourceStructureType,
DatasourceTable,
Expand Down Expand Up @@ -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)}
</EntityPlaceholder>
);
}
Expand Down

0 comments on commit 7856d82

Please sign in to comment.