From 32d7eb4f63a0cd2bb2832cdd15e70794cc050b2e Mon Sep 17 00:00:00 2001 From: ReiHashimoto <42664619+ReiHashimoto@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:31:30 +0900 Subject: [PATCH] fix errors found on release test --- .../slice/DisplayData/DisplayDataSlice.ts | 21 +++---------------- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/frontend/src/store/slice/DisplayData/DisplayDataSlice.ts b/frontend/src/store/slice/DisplayData/DisplayDataSlice.ts index fe139dd9a..c9962d950 100644 --- a/frontend/src/store/slice/DisplayData/DisplayDataSlice.ts +++ b/frontend/src/store/slice/DisplayData/DisplayDataSlice.ts @@ -64,12 +64,7 @@ export const displayDataSlice = createSlice({ }) .addCase(getTimeSeriesDataById.pending, (state, action) => { const { path } = action.meta.arg - if ( - Object.prototype.hasOwnProperty.call( - !state.timeSeries.hasOwnProperty, - path, - ) - ) { + if (!Object.prototype.hasOwnProperty.call(state.timeSeries, path)) { state.timeSeries[path] = { type: "timeSeries", xrange: [], @@ -111,12 +106,7 @@ export const displayDataSlice = createSlice({ }) .addCase(getTimeSeriesAllData.pending, (state, action) => { const { path } = action.meta.arg - if ( - Object.prototype.hasOwnProperty.call( - !state.timeSeries.hasOwnProperty, - path, - ) - ) { + if (!Object.prototype.hasOwnProperty.call(state.timeSeries, path)) { state.timeSeries[path] = { type: "timeSeries", xrange: [], @@ -158,12 +148,7 @@ export const displayDataSlice = createSlice({ }) .addCase(getTimeSeriesInitData.pending, (state, action) => { const { path } = action.meta.arg - if ( - Object.prototype.hasOwnProperty.call( - !state.timeSeries.hasOwnProperty, - path, - ) - ) { + if (!Object.prototype.hasOwnProperty.call(state.timeSeries, path)) { state.timeSeries[path] = { type: "timeSeries", xrange: [], diff --git a/pyproject.toml b/pyproject.toml index b551ecd36..50be69143 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ include = [ "studio/app/Snakefile", "studio/config/*.yaml", "sample_data/input/*", - "sample_data/output/*", + "sample_data/output/**/*.yaml", ] exclude = ["studio/tests/*", "studio/test_data/*", "conda.env.*"]