More tidy unpacking of data

This commit is contained in:
Shane Kilkelly 2018-05-18 11:07:59 +01:00
parent 16106df2f0
commit 4acd55b1c6

View file

@ -51,7 +51,7 @@ define [
ide.fileTreeManager.refreshLinkedFile(file)
.then (response) ->
{ data } = response
new_file_id = data.new_file_id
{ new_file_id } = data
$timeout(
() ->
ide.binaryFilesManager.openFileById(new_file_id)