Skip to content

Commit

Permalink
test: uncontained list
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Oct 30, 2023
1 parent da96041 commit bd7cfa7
Show file tree
Hide file tree
Showing 7 changed files with 719 additions and 439 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"selectFromScope": "dmss://DemoDataSource/plugins/list/task_list",
"headers": [
"name",
"assigned",
"address"
"assigned"
],
"functionality": {
"type": "PLUGINS:dm-core-plugins/list/FunctionalityConfig",
Expand Down
2 changes: 1 addition & 1 deletion example/src/plugins/table/TestUseListPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TestUseListPlugin = (props: IUIPlugin) => {
}}
/>
{attribute && attribute.contained && (
<Button onClick={() => addItem(true)}>Add item</Button>
<Button onClick={() => addItem()}>Add item</Button>
)}
{dirtyState && <Button onClick={() => save()}>Save</Button>}
<ul>
Expand Down
1 change: 0 additions & 1 deletion packages/dm-core-plugins/src/list/ListPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const ListPlugin = (props: IUIPlugin & { config?: TListConfig }) => {
const [showModal, setShowModal] = useState<boolean>(false)
const [expanded, setExpanded] = useState<Record<string, boolean>>({})

// @ts-ignore
const paginatedRows = useMemo(
() =>
items &&
Expand Down
1 change: 0 additions & 1 deletion packages/dm-core/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const packageJson = require('./package.json')
const base = require('../../jest.config.base')

module.exports = {
...base,
testEnvironment: 'jsdom',
Expand Down
Loading

0 comments on commit bd7cfa7

Please sign in to comment.