forked from 0x2620/pandora
handle fresh ui settings
This commit is contained in:
parent
fb3ecb9bd9
commit
898f73e15f
1 changed files with 6 additions and 2 deletions
|
@ -297,7 +297,9 @@ pandora.ui.entitiesDialog = function(options) {
|
|||
}
|
||||
|
||||
function renderEntity() {
|
||||
var id = ui.entitiesSelection['type'][0];
|
||||
var id = ui.entitiesSelection['type']
|
||||
? ui.entitiesSelection['type'][0]
|
||||
: null;
|
||||
if (!id) {
|
||||
$entity.empty();
|
||||
return;
|
||||
|
@ -315,7 +317,9 @@ pandora.ui.entitiesDialog = function(options) {
|
|||
}
|
||||
|
||||
function renderForm() {
|
||||
var id = ui.entitiesSelection['type'][0];
|
||||
var id = ui.entitiesSelection['type']
|
||||
? ui.entitiesSelection['type'][0]
|
||||
: null;
|
||||
if (!id) {
|
||||
$form.empty();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue