Skip to content

Commit c7575cb

Browse files
committed
fix type errors in create.ts
1 parent c7545a7 commit c7575cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/create/create.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export function newThingUI (
8888
_context => {
8989
const newPaneOptions: NewPaneOptions = Object.assign({
9090
newBase: newBase,
91+
folder: options.folder || undefined,
9192
workspace: ws
9293
}, options)
9394
for (const opt in options) {
@@ -209,7 +210,7 @@ export function newThingUI (
209210
const mintingPanes = Object.values(thePanes).filter(pane => pane.mintNew)
210211
const mintingClassMap = mintingPanes.reduce((classMap, pane) => {
211212
if (pane.mintClass) {
212-
classMap[pane.mintClass] = (classMap[pane.mintClass] || 0) + 1
213+
classMap[pane.mintClass.uri] = (classMap[pane.mintClass.uri] || 0) + 1
213214
}
214215
return classMap
215216
}, {})
@@ -218,7 +219,7 @@ export function newThingUI (
218219
const icon: any = createContext.div.appendChild(dom.createElement('img'))
219220
icon.setAttribute('src', pane.icon)
220221
const noun = pane.mintClass
221-
? mintingClassMap[pane.mintClass] > 1
222+
? mintingClassMap[pane.mintClass.uri] > 1
222223
? `${utils.label(pane.mintClass)} (using ${pane.name} pane)`
223224
: utils.label(pane.mintClass)
224225
: pane.name + ' @@'

0 commit comments

Comments
 (0)