fix: Revert auto-hide dropdown to fix popover regression and improve bash poller to handle strings better. (#1017)
This commit is contained in:
@@ -32,9 +32,6 @@ export default ({
|
||||
self.visible = false;
|
||||
}
|
||||
}}
|
||||
onFocusOutEvent={(self) => {
|
||||
self.visible = false;
|
||||
}}
|
||||
onButtonPressEvent={(self, event) => {
|
||||
const buttonClicked = event.get_button()[1];
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ export class BashPoller<Value, Parameters extends unknown[]> {
|
||||
*/
|
||||
public execute = async (): Promise<void> => {
|
||||
try {
|
||||
const res = await execAsync(`bash -c "${this._updateCommand}"`);
|
||||
const res = await execAsync(['bash', '-c', this._updateCommand]);
|
||||
this._targetVariable.set(await this._pollingFunction(res, ...this._params));
|
||||
} catch (error) {
|
||||
console.error(`Error executing bash command "${this._updateCommand}":`, error);
|
||||
|
||||
Reference in New Issue
Block a user