Skip to content

Commit

Permalink
Fix color of toolbar dot
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoldowsky committed Mar 12, 2024
1 parent 3b317e0 commit bd785ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plugins/graph/models/graph-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,11 @@ export const GraphModel = TileContentModel
},
getEditablePointsColor() {
let color = "#000000";
const layer = self.editingLayer;
let layer = self.editingLayer;

Check warning on line 550 in src/plugins/graph/models/graph-model.ts

View check run for this annotation

Codecov / codecov/patch

src/plugins/graph/models/graph-model.ts#L548-L550

Added lines #L548 - L550 were not covered by tests
if (!layer) {
// Even if no layer is currently being edited, show the color of the one that would be.
layer = self.getEditableLayers()?.[0];
}
if (layer) {
const yAttributes = layer.config.yAttributeIDs;

Check warning on line 556 in src/plugins/graph/models/graph-model.ts

View check run for this annotation

Codecov / codecov/patch

src/plugins/graph/models/graph-model.ts#L556

Added line #L556 was not covered by tests
if (yAttributes.length > 0) {
Expand Down

0 comments on commit bd785ee

Please sign in to comment.