Skip to content

Commit 5e7395e

Browse files
fixed error message
1 parent e44fd52 commit 5e7395e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client/packages/lowcoder/src/pages/datasource/datasourceList.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { trans } from "../../i18n";
1616
import { DatasourcePermissionDialog } from "../../components/PermissionDialog/DatasourcePermissionDialog";
1717
import DataSourceIcon from "components/DataSourceIcon";
1818
import { Helmet } from "react-helmet";
19+
import LoadingOutlined from "@ant-design/icons/LoadingOutlined";
1920

2021
const DatasourceWrapper = styled.div`
2122
display: flex;
@@ -145,7 +146,10 @@ export const DatasourceList = () => {
145146
</HeaderWrapper>
146147
<BodyWrapper>
147148
<StyledTable
148-
loading={!datasource.length}
149+
loading={{
150+
spinning: !datasource.length,
151+
indicator: <LoadingOutlined spin />
152+
}}
149153
rowClassName={(record: any) => (!record.edit ? "datasource-can-not-edit" : "")}
150154
tableLayout={"auto"}
151155
scroll={{ x: "100%" }}

client/packages/lowcoder/src/util/context/SubscriptionContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const SubscriptionContextProvider = (props: {
163163
}
164164
};
165165

166-
if (!productsLoaded) {
166+
if (!productsLoaded && customer) {
167167
prepareCheckout();
168168
}
169169
}, [subscriptionDataLoaded, customer, userCount]);

0 commit comments

Comments
 (0)