Skip to content

Commit

Permalink
fix: Added airgap helper for datasource icon URL (#31027)
Browse files Browse the repository at this point in the history
  • Loading branch information
albinAppsmith authored and trishaanand committed Feb 12, 2024
1 parent 286a236 commit b6661f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/client/src/pages/Editor/IDE/LeftPane/DataSidePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { useFeatureFlag } from "utils/hooks/useFeatureFlag";
import { FEATURE_FLAG } from "@appsmith/entities/FeatureFlag";
import { getHasCreateDatasourcePermission } from "@appsmith/utils/BusinessFeatures/permissionPageHelpers";
import { EmptyState } from "../EditorPane/components/EmptyState";
import { getAssetUrl } from "@appsmith/utils/airgapHelpers";

const PaneContainer = styled.div`
width: 300px;
Expand Down Expand Up @@ -134,7 +135,9 @@ const DataSidePane = () => {
isSelected: currentSelectedDatasource === data.id,
startIcon: (
<DatasourceIcon
src={groupedPlugins[data.pluginId].iconLocation}
src={getAssetUrl(
groupedPlugins[data.pluginId].iconLocation,
)}
/>
),
}))}
Expand Down

0 comments on commit b6661f7

Please sign in to comment.