Skip to content

Commit

Permalink
Ac/clean up and fixes (#981)
Browse files Browse the repository at this point in the history
* Remove beacons micro-app as default

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

* Fix custom compose failing check due to empty string

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>

---------

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth authored Aug 1, 2024
1 parent 6ab39e9 commit 6829365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions packages/dashboard/src/components/robots/robots-workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ import { WorkspaceState } from '../workspace';

export const robotsWorkspace: WorkspaceState = {
layout: [
{ i: 'robots', x: 0, y: 0, w: 7, h: 3 },
{ i: 'map', x: 8, y: 0, w: 5, h: 9 },
{ i: 'doors', x: 0, y: 0, w: 7, h: 3 },
{ i: 'lifts', x: 0, y: 0, w: 7, h: 3 },
{ i: 'beacons', x: 0, y: 0, w: 7, h: 3 },
{ i: 'mutexGroups', x: 8, y: 0, w: 5, h: 3 },
{ i: 'robots', x: 0, y: 0, w: 7, h: 4 },
{ i: 'map', x: 8, y: 0, w: 5, h: 8 },
{ i: 'doors', x: 0, y: 0, w: 7, h: 4 },
{ i: 'lifts', x: 0, y: 0, w: 7, h: 4 },
{ i: 'mutexGroups', x: 8, y: 0, w: 5, h: 4 },
],
windows: [
{ key: 'robots', appName: 'Robots' },
{ key: 'map', appName: 'Map' },
{ key: 'doors', appName: 'Doors' },
{ key: 'lifts', appName: 'Lifts' },
{ key: 'beacons', appName: 'Beacons' },
{ key: 'mutexGroups', appName: 'Mutex Groups' },
],
};
2 changes: 1 addition & 1 deletion packages/react-components/lib/tasks/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export function CreateTaskForm({
if (req === null) {
console.error(`Failed to create task request for definition ID: [${definitionId}]`);
}
if (desc && req) {
if (desc !== undefined && req !== null) {
validTasks.push(supportedTask);

if (!defaultTaskDescription && !defaultTaskRequest) {
Expand Down

0 comments on commit 6829365

Please sign in to comment.