Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 4cee3b8

Browse files
authored
Merge pull request #569 from smartprocure/feature/memory-table-bug
Fix MemoryTable bug and bump contexture
2 parents e3954d7 + d00714f commit 4cee3b8

File tree

6 files changed

+85
-22
lines changed

6 files changed

+85
-22
lines changed

CHANGELOG.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 2.54.7
2+
* Fix MemoryTable rendering
3+
14
### 2.54.5
25
* Fix contexture imports
36

package-lock.json

Lines changed: 75 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contexture-react",
3-
"version": "2.54.6",
3+
"version": "2.54.7",
44
"description": "React components for building contexture interfaces",
55
"main": "dist/index.js",
66
"scripts": {
@@ -96,7 +96,7 @@
9696
"babel-loader": "^8.0.6",
9797
"babel-plugin-require-context-hook": "^1.0.0",
9898
"chokidar": "^3.5.2",
99-
"contexture": "^0.5.2",
99+
"contexture": "^0.12.11",
100100
"contexture-client": "^2.48.0",
101101
"contexture-elasticsearch": "^1.13.0",
102102
"danger": "^10.5.4",

src/MemoryTable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _ from 'lodash/fp'
22
import Contexture from 'contexture'
3-
import memory from 'contexture/dist/provider-memory'
4-
import types from 'contexture/dist/provider-memory/exampleTypes'
3+
import memory from 'contexture/dist/esm/provider-memory'
4+
import types from 'contexture/dist/esm/provider-memory/exampleTypes'
55
import React, { useState } from 'react'
66
import ContextureMobx from './utils/contexture-mobx'
77
import { componentForType } from './utils/schema'

src/exampleTypes/ResultTable/TableBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let TableBody = ({
4343
display: showIntro || showNoResults ? 'none' : '',
4444
}}
4545
>
46-
{!!results.length &&
46+
{_.size(results) &&
4747
_.map(
4848
x => (
4949
<Row

src/exampleTypes/ResultTable/index.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Observer } from 'mobx-react'
77
import { Box } from '../../greyVest'
88
import Contexture from 'contexture'
99
import ContextureMobx from '../../utils/contexture-mobx'
10-
import memory from 'contexture/dist/provider-memory'
11-
import types from 'contexture/dist/provider-memory/exampleTypes'
10+
import memory from 'contexture/dist/esm/provider-memory'
11+
import types from 'contexture/dist/esm/provider-memory/exampleTypes'
1212

1313
export default {
1414
title: 'ExampleTypes | ResultTable',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy