Skip to content

Commit

Permalink
fix: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
annarieger committed Jun 28, 2022
1 parent 8fee58f commit f241206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parser/SHOGunApplicationUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import SHOGunAPIClient from '../service/SHOGunAPIClient';

import { getBearerTokenHeader } from '../security/getBearerTokenHeader';


import {
allLayersByIds
} from '../graphqlqueries/Layers';

export interface SHOGunApplicationUtilOpts {
client?: SHOGunAPIClient;
}
Expand Down Expand Up @@ -105,14 +105,14 @@ class SHOGunApplicationUtil<T extends Application, S extends Layer> {
return;
}

let applicationLayerIds: number[] = this.getLayerIds(layerTree.children);
let layerIds: number[] = this.getLayerIds(layerTree.children);

if (applicationLayerIds.length > 0) {
if (layerIds.length > 0) {
try {
const { allLayersByIds: layers } = await this.client.graphql().sendQuery<Layer>({
query: allLayersByIds,
variables: {
ids: applicationLayerIds
ids: layerIds
}
});
if (layerTree.children) {
Expand Down

0 comments on commit f241206

Please sign in to comment.