diff --git a/web/src/components/dashboards/panels/TableRenderer.vue b/web/src/components/dashboards/panels/TableRenderer.vue
index 3153f58351..a2a9af2b22 100644
--- a/web/src/components/dashboards/panels/TableRenderer.vue
+++ b/web/src/components/dashboards/panels/TableRenderer.vue
@@ -16,7 +16,10 @@ along with this program. If not, see .
.
/>
+
{
return selectedTabId.value !== null
- ? props.dashboardData?.tabs?.find(
- (it: any) => it.tabId === selectedTabId.value
- )?.panels ?? []
+ ? (props.dashboardData?.tabs?.find(
+ (it: any) => it.tabId === selectedTabId.value,
+ )?.panels ?? [])
: [];
});
const {
@@ -253,17 +286,17 @@ export default defineComponent({
// provide variablesAndPanelsDataLoadingState to share data between components
provide(
"variablesAndPanelsDataLoadingState",
- variablesAndPanelsDataLoadingState
+ variablesAndPanelsDataLoadingState,
);
//computed property based on panels and variables loading state
const isDashboardVariablesAndPanelsDataLoaded = computed(() => {
// Get values of variablesData and panels
const variablesDataValues = Object.values(
- variablesAndPanelsDataLoadingState.variablesData
+ variablesAndPanelsDataLoadingState.variablesData,
);
const panelsValues = Object.values(
- variablesAndPanelsDataLoadingState.panels
+ variablesAndPanelsDataLoadingState.panels,
);
// Check if every value in both variablesData and panels is false
@@ -280,7 +313,7 @@ export default defineComponent({
const currentQueryTraceIds = computed(() => {
const traceIds = Object.values(
- variablesAndPanelsDataLoadingState.searchRequestTraceIds
+ variablesAndPanelsDataLoadingState.searchRequestTraceIds,
);
if (traceIds.length > 0) {
@@ -334,7 +367,7 @@ export default defineComponent({
...obj,
[item.name]: item.isLoading,
}),
- {}
+ {},
);
}
} catch (error) {
@@ -357,7 +390,7 @@ export default defineComponent({
dataIndex: number,
seriesIndex: number,
panelId: any,
- hoveredTime?: any
+ hoveredTime?: any,
) {
hoveredSeriesState.value.dataIndex = dataIndex ?? -1;
hoveredSeriesState.value.seriesIndex = seriesIndex ?? -1;
@@ -378,7 +411,7 @@ export default defineComponent({
store.state.selectedOrganization.identifier,
props.dashboardData.dashboardId,
props.dashboardData,
- route.query.folder ?? "default"
+ route.query.folder ?? "default",
);
showPositiveNotification("Dashboard updated successfully");
@@ -387,7 +420,7 @@ export default defineComponent({
showConfictErrorNotificationWithRefreshBtn(
error?.response?.data?.message ??
error?.message ??
- "Dashboard update failed"
+ "Dashboard update failed",
);
} else {
showErrorNotification(error?.message ?? "Dashboard update failed", {
@@ -490,7 +523,7 @@ export default defineComponent({
// NOTE: after variables in variables feature, it works without changing the initial variable values
// then, update the initial variable values
await variablesValueSelectorRef.value.changeInitialVariableValues(
- ...args
+ ...args,
);
};