Skip to content

Commit c8266cc

Browse files
committed
lint
1 parent 6882eef commit c8266cc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/dashboard/Data/Browser/Browser.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ class Browser extends DashboardView {
12821282
const existingLegacyFilterIndex = preferences.filters.findIndex(filter =>
12831283
!filter.id && filter.name === name && filter.filter === _filters
12841284
);
1285-
1285+
12861286
if (existingLegacyFilterIndex !== -1) {
12871287
// Convert legacy filter to modern filter by adding an ID
12881288
newFilterId = crypto.randomUUID();

src/lib/tests/Browser.saveFilters.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class MockBrowser {
9494
const existingLegacyFilterIndex = preferences.filters.findIndex(filter =>
9595
!filter.id && filter.name === name && filter.filter === _filters
9696
);
97-
97+
9898
if (existingLegacyFilterIndex !== -1) {
9999
// Convert legacy filter to modern filter by adding an ID
100100
newFilterId = crypto.randomUUID();
@@ -152,7 +152,7 @@ describe('Browser saveFilters - Legacy Filter Conversion', () => {
152152
it('converts legacy filter to modern filter when updating', () => {
153153
const filterData = [{ field: 'name', constraint: 'eq', compareTo: 'test' }];
154154
const filters = new MockList(filterData);
155-
155+
156156
// First, manually create a legacy filter (without ID) in preferences
157157
const preferences = {
158158
filters: [
@@ -187,7 +187,7 @@ describe('Browser saveFilters - Legacy Filter Conversion', () => {
187187
it('creates new filter when legacy filter with same name has different content', () => {
188188
const originalFilterData = [{ field: 'name', constraint: 'eq', compareTo: 'original' }];
189189
const newFilterData = [{ field: 'name', constraint: 'eq', compareTo: 'updated' }];
190-
190+
191191
// Create a legacy filter with different content
192192
const preferences = {
193193
filters: [
@@ -213,13 +213,13 @@ describe('Browser saveFilters - Legacy Filter Conversion', () => {
213213

214214
const updatedPreferences = ClassPreferences.getPreferences('testApp', 'TestClass');
215215
expect(updatedPreferences.filters).toHaveLength(2);
216-
216+
217217
// Original legacy filter should remain unchanged
218218
expect(updatedPreferences.filters[0]).toEqual({
219219
name: 'My Filter',
220220
filter: JSON.stringify(originalFilterData)
221221
});
222-
222+
223223
// New modern filter should be created
224224
expect(updatedPreferences.filters[1]).toEqual({
225225
name: 'My Filter',
@@ -230,7 +230,7 @@ describe('Browser saveFilters - Legacy Filter Conversion', () => {
230230

231231
it('does not affect modern filters when updating', () => {
232232
const filterData = [{ field: 'name', constraint: 'eq', compareTo: 'test' }];
233-
233+
234234
// Create a modern filter (with ID)
235235
const preferences = {
236236
filters: [
@@ -265,7 +265,7 @@ describe('Browser saveFilters - Legacy Filter Conversion', () => {
265265

266266
it('creates new filter when no existing filter matches', () => {
267267
const filterData = [{ field: 'name', constraint: 'eq', compareTo: 'test' }];
268-
268+
269269
// Start with empty preferences
270270
const preferences = { filters: [] };
271271
ClassPreferences.updatePreferences(

0 commit comments

Comments
 (0)