homarr-labs / homarr

Useless template literal found JS-R1004
Anti-pattern
Minor
2 months ago8 months old
Template string can be replaced with regular string literal
 10      const response = await this.getAsync(`/api/states/${entityId}`);
 11      const body = (await response.json()) as unknown;
 12      if (!response.ok) {
 13        logger.warn(`Response did not indicate success`); 14        return {
 15          error: "Response did not indicate success",
 16        };
Template string can be replaced with regular string literal
63            radius="md"
64            fullWidth
65          >
66            {t(`item.create.addToBoard`)}67          </Button>
68        </Stack>
69      </Card>
Template string can be replaced with regular string literal
 10      const response = await this.getAsync(`/api/states/${entityId}`);
 11      const body = (await response.json()) as unknown;
 12      if (!response.ok) {
 13        logger.warn(`Response did not indicate success`); 14        return {
 15          error: "Response did not indicate success",
 16        };
Template string can be replaced with regular string literal
 10      const response = await this.getAsync(`/api/states/${entityId}`);
 11      const body = (await response.json()) as unknown;
 12      if (!response.ok) {
 13        logger.warn(`Response did not indicate success`); 14        return {
 15          error: "Response did not indicate success",
 16        };
Template string can be replaced with regular string literal
 10      const response = await this.getAsync(`/api/states/${entityId}`);
 11      const body = (await response.json()) as unknown;
 12      if (!response.ok) {
 13        logger.warn(`Response did not indicate success`); 14        return {
 15          error: "Response did not indicate success",
 16        };