Skip to content

Commit

Permalink
ucfopen#46 Turns out instance data isn't available for new widgets. U…
Browse files Browse the repository at this point in the history
…sing widget ID is way safer.
  • Loading branch information
FrenjaminBanklin committed Feb 20, 2019
1 parent b4c982e commit f64cd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controllers/ctrl-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ app.controller('createCtrl', function(

const canPublish = () => {
const deferred = $q.defer()
widgetSrv.canBePublishedByCurrentUser(instance.id).then(canPublish => {
widgetSrv.canBePublishedByCurrentUser(widget_id).then(canPublish => {
$scope.canPublish = canPublish
deferred.resolve()
})
Expand Down

0 comments on commit f64cd43

Please sign in to comment.