Skip to content

Commit

Permalink
Merge pull request #763 from MetaCell/fix/bug-fastdelete
Browse files Browse the repository at this point in the history
Fix issue with fast delete of field content
  • Loading branch information
enicolasgomez authored Nov 9, 2023
2 parents 2856508 + 343a0a7 commit 6937f1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions tests/frontend/e2e/tests/RxD.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@ describe('RxD testing', () => {

await page.waitForSelector('button[aria-selected="true"][id = "simple-tab-1"]')

const no_regions_text = await page.$$eval('#simple-tabpanel-1', no_regions_text => {
return no_regions_text.map(no_regions_text => no_regions_text.innerText)
})

expect(no_regions_text).toContain('There are no Species yet.')
await page.waitForSelector('#ip3')
console.log('Species tab opened')
await page.waitForTimeout(PAGE_WAIT)

Expand Down
6 changes: 5 additions & 1 deletion webapp/components/general/NetPyNEField.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export default class NetPyNEField extends Component {
!this.model.split('.')[0].startsWith('simConfig')
|| this.model.split('.')[1].startsWith('analysis')
) {
Utils.execPythonMessage(`del netpyne_geppetto.${this.model}`);
Utils.execPythonMessage(`
try:
del netpyne_geppetto.${this.model}
except KeyError:
...`);
}
}
return value;
Expand Down

0 comments on commit 6937f1b

Please sign in to comment.