diff options
| author | Max Nanis | 2025-06-02 16:45:21 +0700 |
|---|---|---|
| committer | Max Nanis | 2025-06-02 16:45:21 +0700 |
| commit | e6037b430935720ce60245ae36ecd3622e8a22bf (patch) | |
| tree | 13919b0f73729ad47a31e06bdd710f774d70cac0 /src/models/bucketSlice.ts | |
| parent | 8caa77413ea372e5cbd2980a9922d701af359c04 (diff) | |
| download | panel-ui-e6037b430935720ce60245ae36ecd3622e8a22bf.tar.gz panel-ui-e6037b430935720ce60245ae36ecd3622e8a22bf.zip | |
Updated openapi generator to use the latest version (camelCase to underscore - which respects API models). Updating views to use the new swagger definitions. AnswerSlice as a datastore alongside Questions TS interface
Diffstat (limited to 'src/models/bucketSlice.ts')
| -rw-r--r-- | src/models/bucketSlice.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/models/bucketSlice.ts b/src/models/bucketSlice.ts index 9c6aee8..3a2c0d1 100644 --- a/src/models/bucketSlice.ts +++ b/src/models/bucketSlice.ts @@ -1,13 +1,10 @@ import {createSlice, PayloadAction} from '@reduxjs/toolkit' -import {SoftPairBucketClass} from "@/models/bucket.ts" -// import {ProfilingQuestion} from "@/models/question.ts"; import type {RootState} from '@/store' -import {SoftPairBucket} from "@/api/models/soft-pair-bucket.ts" +import {SoftPairBucket} from "@/api"; + -// Create an initial state value for the reducer, with that type const initialState: SoftPairBucket[] = [] -// Create the slice and pass in the initial state const bucketSlice = createSlice({ name: 'buckets', initialState, @@ -21,7 +18,6 @@ const bucketSlice = createSlice({ } }) -// Export the generated reducer function export const {setBuckets, bucketAdded} = bucketSlice.actions; export default bucketSlice.reducer |
