Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FIX] Fetch workspace apps correctly#1663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -88,7 +88,6 @@ const EnvironmentDetail: React.FC = () => {
{/* Add more menu items here if needed */}
</Menu>
);
debugger

if (isLoadingEnvironment) {
return (
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -291,23 +291,22 @@ export async function getWorkspaceApps(
Authorization: `Bearer ${apiKey}`
};

// Make the API request to get apps
// Include the orgId as a query parameter if needed
// First, switch to the target workspace
await axios.put(`${apiServiceUrl}/api/organizations/switchOrganization/${workspaceId}`, {}, {
headers
});

// Then fetch applications without the orgId parameter
const response = await axios.get(`${apiServiceUrl}/api/applications/list`, {
headers,
params: {
orgId: workspaceId
}
headers
});

// Check if response is valid
if (!response.data || !response.data.data) {
return [];
}

const filteredApps = response.data.data.filter((app: App) => app.orgId === workspaceId);

return filteredApps;
return response.data.data;

} catch (error) {
// Handle and transform error
Expand DownExpand Up@@ -430,7 +429,7 @@ export async function getWorkspaceQueries(
headers,
params
});
debugger

// Check if response is valid
if (!response.data) {
return { queries: [], total: 0 };
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp