Skip to content
Snippets Groups Projects
Commit f9aa7092 authored by Simon Belak's avatar Simon Belak
Browse files

Rename dashboard type from auto to transient

parent 8cb69442
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ function getDashboardType(id) {
} else if (Utils.isJWT(id)) {
return "embed";
} else if (/\/auto\/dashboard/.test(id)) {
return "auto";
return "transient";
} else {
return "normal";
}
......@@ -468,7 +468,7 @@ export const fetchCardData = createThunkAction(FETCH_CARD_DATA, function(
...getParametersBySlug(dashboard.parameters, parameterValues),
}),
);
} else if (dashboardType === "auto") {
} else if (dashboardType === "transient") {
result = await fetchDataOrError(MetabaseApi.dataset(card.dataset_query));
} else {
result = await fetchDataOrError(
......@@ -519,7 +519,7 @@ export const fetchDashboard = createThunkAction(FETCH_DASHBOARD, function(
dashboard_id: dashId,
})),
};
} else if (dashboardType === "auto") {
} else if (dashboardType === "transient") {
const [type, id] = dashId.split("/").slice(3);
result = await AutoApi.dashboard({ type, id });
result = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment