Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

206 B
Raw Blame
import { skipToken } from "@reduxjs/toolkit/query";

export function paramIdToGetQuery(strId: string | undefined) {
  const id = strId ? parseInt(strId, 10) : undefined;
  return id ? { id } : skipToken;
}