Skip to content

Commit e1274a5

Browse files
committed
Fix the regression.
1 parent 34b9ebf commit e1274a5

4 files changed

Lines changed: 1 addition & 5 deletions

File tree

e2e/fixtures/filters.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ test('Name', async (t) => {
1313
await screenTasks.addTask('BAZ');
1414
// Send "ctrl+f" keys
1515
await t.pressKey('ctrl+f');
16-
// Reload and open again so uPlot is loaded
17-
await reload();
18-
await t.pressKey('ctrl+f');
1916

2017
await t.expect(await comparePageScreenshot('empty filter')).eql(VISUAL_REGRESSION_OK);
2118
// Fill in the "Name filter", in lowercase
0 Bytes
Loading
-1 Bytes
Loading

src/app/screen-tasks/tasks-filter/timeline-chart-uplot.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { format } from 'date-fns/format';
1818
import { millisecondsToSeconds } from 'date-fns/millisecondsToSeconds';
1919
import { secondsToMilliseconds } from 'date-fns/secondsToMilliseconds';
2020
import uPlot, { AlignedData, Plugin } from 'uplot';
21-
import 'uplot/dist/uPlot.min.css';
2221

2322
const barChartPlugin = (params: { colors: (string | null)[]; minRangeInMs: Milliseconds }): Plugin => {
2423
const minRangeInSeconds: Seconds = millisecondsToSeconds(params.minRangeInMs);
@@ -77,7 +76,7 @@ const barChartPlugin = (params: { colors: (string | null)[]; minRangeInMs: Milli
7776
@Component({
7877
selector: 'timeline-chart-uplot',
7978
template: ``,
80-
styleUrl: '/node_modules/uplot/dist/uPlot.min.css',
79+
styleUrl: '../../../../node_modules/uplot/dist/uPlot.min.css',
8180
encapsulation: ViewEncapsulation.None,
8281
changeDetection: ChangeDetectionStrategy.OnPush,
8382
styles: [

0 commit comments

Comments
 (0)