Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
zackyoungh authored and github-actions[bot] committed Nov 29, 2024
1 parent ae81c4e commit fbe57d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dinky-web/src/pages/DataStudio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ const DataStudio: React.FC = (props: any) => {
await queryUserData({ id: getTenantByLocalStorage() });
await queryDsConfig();
await queryTaskOwnerLockingStrategy();
await queryResourceConfig()
await queryResourceConfig();
}, []);
useAsyncEffect(async()=>{
useAsyncEffect(async () => {
if (enableResource) {
await queryResource();
}
},[enableResource])
}, [enableResource]);
useEffect(() => {
const { actionType, params } = dataStudioState.action;
if (actionType?.includes('task-run-')) {
Expand Down
4 changes: 2 additions & 2 deletions dinky-web/src/pages/SettingCenter/GlobalSetting/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const ConfigModel: ConfigModelType = {
});
}
},
*queryResourceConfig({ }, { call, put }) {
const response: BaseConfigProperties[] = yield call(queryResourceConfig,);
*queryResourceConfig({}, { call, put }) {
const response: BaseConfigProperties[] = yield call(queryResourceConfig);
yield put({
type: 'saveDsConfig',
payload: response || []
Expand Down
4 changes: 3 additions & 1 deletion dinky-web/src/pages/SettingCenter/GlobalSetting/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export async function queryDsConfig() {
}

export async function queryResourceConfig() {
return await queryDataByParams(API_CONSTANTS.SYSTEM_GET_ONE_TYPE_CONFIG, { type: SettingConfigKeyEnum.RESOURCE.toLowerCase() });
return await queryDataByParams(API_CONSTANTS.SYSTEM_GET_ONE_TYPE_CONFIG, {
type: SettingConfigKeyEnum.RESOURCE.toLowerCase()
});
}

export async function queryTaskOwnerLockingStrategy() {
Expand Down

0 comments on commit fbe57d7

Please sign in to comment.